Thursday, March 15, 2012

Re: generateTreeList starting from an id

i forgot to say i've already tried the "conditions" argument but the function will return just the first layer of results

Il giorno giovedì 15 marzo 2012 16:49:30 UTC+1, Ernesto ha scritto:
Hi all.

i'm using TreeBehavior in one of my Models and everything is working ok.

just one question:
generateTreeList returns a list containing ALL the entries in the table.

i want the treeList just for the category with id = 20 and his childrens

how can i do?

Il giorno giovedì 15 marzo 2012 16:49:30 UTC+1, Ernesto ha scritto:
Hi all.

i'm using TreeBehavior in one of my Models and everything is working ok.

just one question:
generateTreeList returns a list containing ALL the entries in the table.

i want the treeList just for the category with id = 20 and his childrens

how can i do?

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate