The official docs says that smarty has ‘while’ support . However I do in template the following:
{while $foo > 0}
{$foo--}
{/while}
and I get the following error :
syntax error: unrecognized tag ‘while’
(Smarty_Compiler.class.php)
Can you please help with that issue ? Thanks a lot.
You are probably using an old version (without
while) of smarty, that’s why you get the error