Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Realizzare un loop su una table

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Italian
View previous topic :: View next topic  
Author Message
my_smarty
Smarty n00b


Joined: 30 Jun 2009
Posts: 2

PostPosted: Tue Jun 30, 2009 3:00 pm    Post subject: Realizzare un loop su una table Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Italian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP