Isn't FOR loop available out of the box?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jpcarvalhinho
Forum Members
Forum Members
Posts: 14
Joined: Sun Sep 27, 2009 3:45 pm

Isn't FOR loop available out of the box?

Post 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"
jpcarvalhinho
Forum Members
Forum Members
Posts: 14
Joined: Sun Sep 27, 2009 3:45 pm

Re: Isn't FOR loop available out of the box?

Post by jpcarvalhinho »

{section name=foo loop=9}
{$smarty.section.foo.iteration}
{/section}

duh!
jpcarvalhinho2
New Member
New Member
Posts: 5
Joined: Fri May 27, 2011 1:00 pm

Re: Isn't FOR loop available out of the box?

Post 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!
Post Reply

Return to “CMSMS Core”