Re[2]: [PEAR-DEV] Contribution for PECL
| From: | Katana | Date: | Sat, 28 Dec 2002 02:50:14 +0000 |
| Subject: | Re[2]: [PEAR-DEV] Contribution for PECL | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11860@lists.php.net to get a copy of this message | ||
M> php_templates' synthax is very simple because it keeps Presentation
M> level free of any kind of logic, leaving it for the Code (Business
M> Logic) level of an application. I would call it a Classical
M> approach to N-tier architecture.
M> Smarty is a one of the best engines I've ever seen, but it has a
M> totally different ideology of templating, and can not be compared
M> with php_templates. Despite of the fact that it has too much code
M> to be parsed for every request, and therefore needs something like
M> ZendCache to be installed on the server for faster work, this is a
M> one of "language inside of a language" projects. You still have to
M> be a programmer to create Smarty's templates.
Did you read Monte's "why use smarty" page on smarty.php.net ? It
explains quite well why trying to have "no logic in the template" is
useless... You NEED logic in your template. If it's not in the
template, it's in the code, and if the design depends on this code,
then you don't achieve the layout separation you were using templates
for. Final dot as far as i'm concerned...
Katana