|
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 |
FTX Smarty n00b
Joined: 17 Oct 2011 Posts: 1
|
Posted: Mon Oct 17, 2011 4:25 pm Post subject: SECTION - uasort - Array |
|
|
Bonjour,
Voilà je trie un array avec uasort.
mais lors de l'affichage sur le template via un section.
Il ne le prend pas en compte.
Comment faire?
Merci. |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Tue Nov 15, 2011 12:51 pm Post subject: |
|
|
Bonjour,
la balise section fonctionne comme une boucle for.
Pour garder le tri fait avec un uasort, il faudrait plutot utiliser le {foreach} _________________ N'oubliez pas de mettre le tag "[Résolu]" sur vos post |
|
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
|