RE: Smarty and speed
| From: | Pablo | Date: | Sun, 09 Dec 2001 21:13:31 +0000 |
| Subject: | RE: Smarty and speed | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2223@lists.php.net to get a copy of this message | ||
Brent,
You are absolutely correct. Using smarty is the easiest thing in the world.
Forgive my ignorance. Any designer can pick it up and go; no problem.
It's especially easy to display data that comes from a database that is
based on queries from multiple tables with foreign key references. (It
slices, it dices...)
For example, I have a book with chapters, sections and pages. I want to
display a table of contents using Smarty. What a breeze! All I have to do
is build a multi-dimensional array with chapters that point to sections that
point to pages. Then I assign the array to a Smarty variable and include
the designer's template! They will easily convert that into something
useful!!! They don't even need to "think", it's that easy! All they need
to know is how to do the sections for a multi-dimensional array! Wow! And
all this from a templating "system" (it's not a language) where no
programming is involved! They don't even need to use square brackets or
understand indexes! It's that easy!
I was so wrong. How could I have been so blind? Thanks for showing me the
path. I was lost, but now I see!
You're right. I just didn't get it. I'm a little dense. But now, with
your help, I have completely changed my mind. Smarty is the answer for all
my templating needs! No programming required! Amazing. Programming?
Never!!!! For those confused, the use of "if/then/else" and looping is NOT
programming! Wow!! Go figure!
PHP is a programming language but Smarty is not! It's so obvious...
This is too enlightening; I am un-subscribing now,
Pablo
-----Original Message-----
From: Brent R. Matzelle [mailto:bmatzelle@yahoo.com]
Sent: Sunday, December 09, 2001 3:40 PM
To: smarty@lists.ispi.net
Subject: [smarty] RE: Smarty and speed
--- Pablo <phpshop@phpshop.org> wrote:
> Your comments are not fair. Templating has obvious advantages and
> we see
> that very clearly.
If you believe that PHP is a true templating language then you do not
understand. PHP is a programming language for many reasons (API,
OOP, etc). I know this because I program in many "true" programming
languages: C, C++, Java, Python. Smarty abstracts an incredible
amount of the sophistication of PHP just as XSLT does.
> Why do I mention this? Well, as you pointed out "separation of
> back end PHP
> code from presentation" is important. But when using Smarty all
> you really
> accomplish is to replace PHP with another language( i.e. Smarty).
> This means
> your designers still need to learn how to "program". Albeit with a
> different language.
That is not true. The only thing that designers have to know is how
to use {section}{/section} and {$VARIABLE}. They _never_ do any
programming.
> I wish you would not blindly accuse people of ignorance.
I did no such thing. I stated my opinion and nothing more.
Brent
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
---
You are currently subscribed to smarty as: phpshop@phpshop.org
To unsubscribe send a blank email to $subst('Email.Unsub')
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/