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

Array et index dynamique ¿

 
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
kdz
Smarty Rookie


Joined: 24 Mar 2007
Posts: 5

PostPosted: Sun Jun 03, 2007 10:38 am    Post subject: Array et index dynamique ¿ Reply with quote

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 Wink
Back to top
View user's profile Send private message
kdz
Smarty Rookie


Joined: 24 Mar 2007
Posts: 5

PostPosted: Tue Jun 05, 2007 7:22 am    Post subject: Reply with quote

En fait mon topic se réfère aussi avec celui là : http://www.phpinsider.com/smarty-forum/viewtopic.php?t=10975
Back to top
View user's profile Send private message
kdz
Smarty Rookie


Joined: 24 Mar 2007
Posts: 5

PostPosted: Tue Jun 05, 2007 11:59 am    Post subject: Reply with quote

ok j'ai trouvé ! merci pour votre aide précieuse Wink
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