RE: [SMARTY] section question
| From: | gafonso@blackorange.pt | Date: | Thu, 15 May 2003 12:50:54 +0000 |
| Subject: | RE: [SMARTY] section question | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9550@lists.php.net to get a copy of this message | ||
this one is easy try this:
<table>
{section name=id loop=$customer step=2}
<tr>
<td>Name: {$customer[id]}</td>
<td>Name: {$customer[id+1]}</td>
</tr>
{/section}
</table>
Mensagem Original:
-----------------
De: ThE PhP_KiD gregoriandres@yahoo.com.ar
Data: Thu, 15 May 2003 09:33:17 -0300
Para: smarty-general@lists.php.net
Assunto: [SMARTY] section question
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.
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------------------------------------------
mail2web - Verifique o seu correio electrónico na Web em
http://mail2web.com/ .