|
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 |
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Thu Jul 29, 2010 1:59 pm Post subject: section et boucle for |
|
|
Bonjour,
Je voudrais réaliser la même chose dans un tpl
Code: | for($i = 1; $i != $nbv; $i++) {
echo $data['nom_v'.$i].'<br />';
} |
Dans mon TPL j'ai testé :
Code: |
{section name=cdr start=1 loop=6}
{assign var=i value=$smarty.section.vdr.index}
{$annonce.nom_v[$i]}
{/section} |
Mais celui ci refuse, y à t'il une solution ? |
|
Back to top |
|
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Sat Jul 31, 2010 7:30 am Post subject: |
|
|
Problème résolu ici
Vraiment bien dommage que la communauté FR est super pourrie et ce sur bon nombre de forum.... |
|
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
|