Thanks for the assistance. The problem with using a foreach loop to format
the array, seems to be quite inefficient and meant the page was taking over
30secs to load.
I solved it like this:
$arrListVals = Set::combine($Array, '{n}.' . $ModelName . '.id', '{n}.' .
$ModelName);
Cheers.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Formatting-Arrays-tp1289583p4667558.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php