 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. |
|
View previous topic :: View next topic |
Author |
Message |
tdan Smarty Rookie

Joined: 27 Mar 2015 Posts: 8
|
Posted: Thu Apr 09, 2015 8:28 am Post subject: forearch en smarty |
|
|
Bonjour, j'ai besoin de l'équivalent de ceci:
[code]foreach($tns as $index => $value) {
echo '<a href="'.$img[$index].'"><img width="50" src="'.$tns[$index].'"></a>';
}[/code]
en smarty?
Mes variables:
[code]
$smarty->assign('tnslist', $tns);
$smarty->assign('imglist', $img);
[/code] |
|
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
|