Re:Ask HN: PHP Tricks and Best Practices?
by bprater on Wednesday October 29, 2008 @03:19PM
(#347857)
I could never understand the advantage of using a templating system inside another templating system. Smarty has loops. PHP has loops. Did I miss the train?
[ Parent
| on HN ]
Re:Ask HN: PHP Tricks and Best Practices?
by kwamenum86 on Wednesday October 29, 2008 @07:00PM
(#348150)
Smarty produces slightly cleaner code but is worthless otherwise IMHO.
It's adding an extra layer of work which is unnessacary unless you're handing templates to people who really can't do PHP. If your designers are working on the HTML use Smarty tbh.
Re:Ask HN: PHP Tricks and Best Practices?
by louislouis on Wednesday October 29, 2008 @07:36PM
(#348195)
I use smarty mainly for it's templating benefits. Also you can write your own custom functions to call from the template files if needed, I found this to be very handy.