|
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 |
Laurence Smarty Rookie
Joined: 05 Jan 2006 Posts: 7
|
Posted: Fri Jan 06, 2006 10:43 am Post subject: Remarque empirique sur {html_table} |
|
|
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 |
|
|
|
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
|