|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Alphanimal Smarty Rookie
Joined: 24 Apr 2004 Posts: 15
|
Posted: Sun May 23, 2004 7:00 pm Post subject: Simple loop??? |
|
|
Hi!
Is it possible to do a simple loop from 1 to 10?
section/foreach?
thx |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun May 23, 2004 11:48 pm Post subject: |
|
|
section accepts integer values in the loop attribute:
Code: | {section name=i loop=10}
{$smarty.section.i.iteration}
{/section} |
|
|
Back to top |
|
Alphanimal Smarty Rookie
Joined: 24 Apr 2004 Posts: 15
|
Posted: Mon May 24, 2004 7:23 pm Post subject: Thanks! |
|
|
worked!
but now i have an other problem... see other post! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|