RE: [SMARTY] How far to go with smarty templating?
| From: | Gary Loescher | Date: | Sun, 23 Jun 2002 21:25:05 +0000 |
| Subject: | RE: [SMARTY] How far to go with smarty templating? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4982@lists.php.net to get a copy of this message | ||
I usually have two layers of php behind my templates. One
is for data access and other core functionality, and the
other is for massaging before handing off to a template.
The reason is that some of the complex template logic is
too much for designers; they don't want to bother with it
(and why should they?). I still try not to have any HTML
in the middle layer, but just move data around into formats
that are amenable to usage in Smarty templates.
I also have some plugins that work with the middle layer
to build some of the more complex HTML.
Just my $.02,
Gary