Hi,
well what about simply do a find with the category id as a conditions? like:

$this->Product->find('all', array('conditions' => array('categorie_id' 
=> $cat_id)));

never used the tree behavior, but what about 
http://book.cakephp.org/view/812/find-threaded ?

greets
Andreas

rchavik schrieb:
> maybe use $conditions parameter of generatetreelist?
>
> http://book.cakephp.org/view/228/Basic-Usage#generatetreelist-517
>
> On Jul 13, 8:07 am, rocket <justin...@gmail.com> wrote:
>   
>> I have a standard categories, and products, and am using the Tree
>> behvaiour for the Category model.
>>
>> For example I have:
>>
>> +Electronics
>> --- Television
>> ------ SONY
>> ------ Panasonic
>> --- Computer
>> ------ Dell
>> ------ Apple
>>
>> I simply want to know how to pull all the inventory from a particular
>> sub-category. Like I want to see all the items in Electronics, or all
>> the items in Computer.
>>
>> Is there a built in function to do this? I couldn't find one.
>>
>> cheers
>>     
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to