|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
my_smarty Smarty n00b
Joined: 30 Jun 2009 Posts: 2
|
Posted: Tue Jun 30, 2009 3:00 pm Post subject: Realizzare un loop su una table |
|
|
Ciao a tutti,
vorrei un help per templetizzare questo loop con smarty:
Code: |
<tr>
<td><img src="foto1"/></td>
<td><img src="foto2"/></td>
<td><img src="foto3"/></td>
</tr>
<tr>
<td>Prodotto 1</td>
<td>Prodotto 2</td>
<td>Prodotto 3</td>
</tr>
...
|
Stavo iniziando facendo un {foreach from=$prodotti item=prodotto name=cicloCat}
ma credo che si debbano fare due loop sugli stessi indici perche' si associ a foto1 il prodotto1, potete aiutarmi sulla sintassi da usare per organizzare l'elenco prodotti 3 colonne x N righe?
Grazie dell'aiuto.
Paola |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|