section question
| From: | ThE PhP_KiD | Date: | Thu, 15 May 2003 12:33:17 +0000 |
| Subject: | section question | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9549@lists.php.net to get a copy of this message | ||
Hi,
There is a way to make a new iteration inside a section ?
example:
<table>
{section name=id loop=$customer step=2}
<tr>
<td>Name: {$customer[id]}</td>
<td>Name: ($customer[id+1]}</td>
</tr>
{/section}
</table>
The idea is put a customer list in 2 columns.
I try above code, but this: "($customer[id+1]}"
generates a smarty error.
If I could generate a new loop for this section,
between this columns, would be great !
I've look for on Smarty documentation, but I couldn't
found it.
Thanks!
( and sorry for my poor english )
--
...ThE PhP_KiD.