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

section et boucle for

 
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
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Thu Jul 29, 2010 1:59 pm    Post subject: section et boucle for Reply with quote

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
View user's profile Send private message
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Sat Jul 31, 2010 7:30 am    Post subject: Reply with quote

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
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