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

Latest version - Foreach sort ?

 
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 -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 76

PostPosted: Sat Aug 08, 2015 5:47 am    Post subject: Latest version - Foreach sort ? Reply with quote

Hello.

I've got a version 2 (something) of Smarty.

I see that the latest version is '3' something.

Can anyone advise

1) if the latest version has a 'default' SORT feature for the foreach function
(ie i dont need to install any extras)

2) if it does, do i just delete my existing smarty files & replace with the new downloaded files & my existing scripts should still work ?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sat Aug 08, 2015 12:28 pm    Post subject: Reply with quote

What you mean by "SORT" feature? Sorting array before iteration? That's your responsibility BEFORE passing data to Smarty.
Drop-in update between major releases may work. Or may not.
Either way, you MUST make upgrade in development environment first.
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 -> General 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