Loop $num times? am I blind? I cannot see this function..
| From: | Eaden McKee | Date: | Mon, 28 Apr 2003 01:58:44 +0000 |
| Subject: | Loop $num times? am I blind? I cannot see this function.. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9397@lists.php.net to get a copy of this message | ||
Hi there,
I have an array $posts, with $posts->level ( between 0 and 99 say )
What I would like to do is :
{{section name=p loop=$posts}}
<html code here>
{{loop num=$posts[p]->level}}
<html code that gets repeated $posts[p]->level times>
{{/loop}}
<more html>
{{/section}}
Although I cannot see a loop function anywhere. Is there some alternative function that does this?
Best Regards
Eaden McKee