Hi Jérémy,

> I am very new with CakePHP and I am trying to set up an authentication
> system using the Auth component provided.
>
> How can I show the logged user's name on a view ? Let's say the user
> John logged in successfully, I would like to put something like
> "Logout [John]" in the default layout. How can I get this "John"
> string ?

Have a look at the user() method of the AuthComponent.

Hope that helps!

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to