Page 1 of 1
Isn't FOR loop available out of the box?
Posted: Wed May 25, 2011 11:25 pm
by jpcarvalhinho
Hello!
I get a syntax error: unrecognized tag 'for' (Smarty_Compiler.class.php, line 590)
when I use
{for $x=0; $x<30; $x++}{/for}
release-> 1.9.4.1 "Faanui"
Re: Isn't FOR loop available out of the box?
Posted: Wed May 25, 2011 11:42 pm
by jpcarvalhinho
{section name=foo loop=9}
{$smarty.section.foo.iteration}
{/section}
duh!
Re: Isn't FOR loop available out of the box?
Posted: Fri May 27, 2011 1:04 pm
by jpcarvalhinho2
Hello... using another user as I could not login with the original, and have used all my known e-mails to recover password with no avail!
OK now that I have the foo variable how can I use it to show the variable
{$documentX} where X marks the spot?
{$document$foo}?
{$document|$foo}?
{$document.$foo}?
HELP!