On Jan 15, 3:32 pm, Miles J <[email protected]> wrote:
> Set your recursive level to 2/3 and the User association will grab the
> categories along with it. Use containable to filter the results.
I'm new to cakephp so I'll try to echo back what I think you're
saying.
In my recipes controller then I'd do something like this?
$this->User->Category('list',array('options'=>array('User.id'=>
$user_id),'recursive'=>2))
I haven't used containable, I'll have to look that one up.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---