Re:Ask HN: PHP Tricks and Best Practices?
by JoelSutherland on Wednesday October 29, 2008 @05:02PM
(#348014)
With Smarty 2.x you're left needing to do something like:
{assign var=foo value="some string"}
{$user[$foo]}
Smarty 3.x has a legitimate lexer/parser so the templates will be much more flexible. I think they finally realized that since they are compiling the templates anyway the parsing can be slow.
Smarty 3.x has a legitimate lexer/parser so the templates will be much more flexible. I think they finally realized that since they are compiling the templates anyway the parsing can be slow.