Saturday, March 28, 2009

RE: Get all USER info

Thanks for the suggestion.

I just installed the toolbar and that has what I was looking for. It shows
all the info related to the particular user.

Dave

-----Original Message-----
From: brian [mailto:bally.zijn@gmail.com]
Sent: March-28-09 11:18 AM
To: cake-php@googlegroups.com
Subject: Re: Get all USER info


Do you mean like this?

$this->User->find(
'first',
array(
'conditions' => array(
'User.id' => $user_id
),
'contain' => array(
'Post',
'Message'
'Question'
)
)
)

On Fri, Mar 27, 2009 at 7:44 PM, Dave Maharaj :: WidePixels.com
<dave@widepixels.com> wrote:
> I know this is a noobie question. I cant remember how to display all
> the user info in the array. I see the Auth array but I want to see all
> the messages / posts / questions that the user has entered in the site.
>
> Can someone please help me.I tried debug but that did nothing...I just
> cant remember how to do it.
>
> Thanks
>
> Dave
> >
>

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

No comments: