| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Sorting Array in Smarty Alphabetically | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Sorting Array in Smarty Alphabetically
Hi All,
I was wondering, is there some way of using a foreach loop in smarty and sorting alphabetically. I am retrieving a list of Newlists from the DB on the register screen, so in register.tpl I am stepping through. Similar to: Code:
I would like to build the list of checkboxes ordered by name. Does anyone know how to do this? Thanks, FWM.
__________________
X-Cart 4.1.9 X-Cart 4.4.1 X-Cart Platinum 4.6.1 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Sorting Array in Smarty Alphabetically
Thsi may help
http://www.smarty.net/forums/viewtopic.php?t=1079
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Sorting Array in Smarty Alphabetically
Thanks Steve,
That worked.
__________________
X-Cart 4.1.9 X-Cart 4.4.1 X-Cart Platinum 4.6.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|