if you are using Tree Behaviour the you need to use "lft" and "rght" field and it will create an array based on this values...:) -- Lep pozdrav, Tilen Majerle http://majerle.eu
2011/4/16 Mr.Jayesh <[email protected]> > Hi Mates, > > First off all, I would like to thank this group for being of great > support. > Guys, as in my project I was trying to display category list inside > select box. I am using Tree List, so what I have in my table is: > | id | category | parent_id | > Currently I am using generatetreelist() that generates a good > hierarchy of categories, but these are not in proper order. > > I mean, I wanted to order it according to category field. I tried many > ways but didn't got the result, even later got confused while > searching for a solution. > > May anyone please advice me a simple solution in this regards, would > be thankful. > > Regards, > Jayesh > > -- > 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 > -- 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
