|
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 |
kdz Smarty Rookie
Joined: 24 Mar 2007 Posts: 5
|
Posted: Sun Jun 03, 2007 10:38 am Post subject: Array et index dynamique ¿ |
|
|
Bonjour,
J'essaye d'accéder aux valeur d'un tableau dont les index sont appelés dynamiquement....
J'ai essayé ça :
Code: | {foreach from=$classements item=classement key=key_c}
<tr>
<td>{$classement}</td>
{foreach from=$t_annees item=t_annee}
<td>{eval var="$taux.`$t_annee`a_`$key_c`"}</td> //ligne en question
{/foreach}
</tr>
{/foreach} |
J'ai essayé ça aussi mais rien n'y fait :
Code: | {"$taux.`$t_annee`a_`$key_c`"} |
Est-possible ? Merci d'avance |
|
Back to top |
|
kdz Smarty Rookie
Joined: 24 Mar 2007 Posts: 5
|
|
Back to top |
|
kdz Smarty Rookie
Joined: 24 Mar 2007 Posts: 5
|
Posted: Tue Jun 05, 2007 11:59 am Post subject: |
|
|
ok j'ai trouvé ! merci pour votre aide précieuse |
|
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
|