Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Remarque empirique sur {html_table}

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Laurence
Smarty Rookie


Joined: 05 Jan 2006
Posts: 7

PostPosted: Fri Jan 06, 2006 10:43 am    Post subject: Remarque empirique sur {html_table} Reply with quote

Code:

{html_table loop=$tab cols=1 table_attr='border="0"'}

{foreach from=$tab item=curr_id}
{$curr_id}<br>
{/foreach}



Si le tableau de données à parcourir est un tableau associatif (soit de type $tab=array(1=>'donnee1', 2=>'donnee2'); )
{html_table} n'affichera pas la dernière donnée du tableau (alors que la boucle {foreach} le fera).

Pour un tableau sans clefs, {html_table} fonctionne correctement.

Qu'en pensez-vous ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: French 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