Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Remarque empirique sur {html_table}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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