|
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 |
sarahfoxnz Smarty Regular
Joined: 11 Apr 2010 Posts: 76
|
Posted: Sat Aug 08, 2015 5:47 am Post subject: Latest version - Foreach sort ? |
|
|
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 |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Aug 08, 2015 12:28 pm Post subject: |
|
|
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 |
|
|
|
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
|