Re: Template system in PHP
| From: | Shawn McKenzie | Date: | Tue, 12 Feb 2008 20:22:11 +0000 |
| Subject: | Re: Template system in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269192@lists.php.net to get a copy of this message | ||
Ryan A wrote:
> Add my vote too for Smarty....
>
> HTH,
> -R
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
I like smarty and it's very powerful, however what you find is that it's
just a less capable replacement for PHP. If I want conditional
statements to display HTML and/or loop through arrays, why would I want
to do it in smarty tags? Instead of moving display away from logic, it
just replaces the logic with a different language. When I use templates
I pretty much want variable substitution. My next project I'll probably
use HTML files with little bits of PHP echos etc... sprinkled throughout.
-Shawn