Re: [SMARTY] looping in smarty
| From: | messju mohr | Date: | Tue, 03 Feb 2004 12:47:38 +0000 |
| Subject: | Re: [SMARTY] looping in smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10923@lists.php.net to get a copy of this message | ||
On Tue, Feb 03, 2004 at 11:22:56PM +1100, adwinwijaya wrote:
> Hello smarty-general,
>
> is there any way for template designer to do looping like :
> for($i = 0 , $i < 10, $i++)
> echo '<tr><td>'.$i.'</td></tr>' ;
{section name=i loop=10}
<tr><td>{$smarty.section.i.index}</td></tr>
{/section}
> and is there any way to do recursive thru an complex array ?
maybe see this thread:
http://marc.theaimsgroup.com/?l=smarty-general&m=107548294623813&w=2
and this:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=291
greetings
messju