Complex loops - SECTIONS
| From: | HarryG | Date: | Sat, 09 Apr 2005 00:35:30 +0000 |
| Subject: | Complex loops - SECTIONS | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12437@lists.php.net to get a copy of this message | ||
Hi,
I am basically trying to do the following and need some help.
{section name=count loop=$Photos start=1 step=4}
<tr>
<td>{$Photos[count].Filename}</td><td>{$Photos[count+1].Filename}</td><td>{$Photos[count+2].Filename}</td><td>{$Photos[count+3].Filename}</td>
</tr>
{/section}
Because my step is 4, I wanna print all the photos from 1-4 in the first row and then 5-8 in the
second and so on...
Thanks in advance
HarryG