Official docs say smarty has βso farβ support . However, I do the following in the template:
{while $foo > 0} {$foo--} {/while}
and I get the following error:
Syntax error: unrecognized tag 'while' (Smarty_Compiler.class.php)
Can you help in solving this problem? Many thanks.
You are probably using the old version (without while) smarty, so you get an error
while
As @RC said, you are probably using Smarty v2. If you canβt upgrade to v3, you need to take a look {section}or maybe {foreach}for a loop.
{section}
{foreach}