You get the currently authenticated user information from the Auth
object, so in your controller, you reference:

$userId = $this->Auth->user('id');

You can then use the value in your find to restrict the data.

On Feb 3, 7:47 pm, psa <[email protected]> wrote:
> Hello.
>
> I'm new to cakePHP.
> I have this problem in my project application that I'm having
> difficulty determining the authenticated user information so that I
> can only display a list of designated accounts of him. I believe I
> have to filter the controller data at the view process but I don't
> where to get
> the user's information.
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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