first take the result of your model output in a variable, and
pr($model_output) in your view.

MarcS wrote:
> Hi everyone,
>
> I have a model setup like the following
> User -> habtm Group
> Group -> habtm User
>
> How can I find the groups a user belongs to?
>
> I tried something like
> $this->User->Group->find('all',array('conditions' => array('User.id'
> => $user_id)));
> but that doesn't work.
>
> I have no idea what to try and I was not able to google this.
>
> I would be grateful for any help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to