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

 
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
FTX
Smarty n00b


Joined: 17 Oct 2011
Posts: 1

PostPosted: Mon Oct 17, 2011 4:25 pm    Post subject: SECTION - uasort - Array Reply with quote

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


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Tue Nov 15, 2011 12:51 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail
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