in your beforeFilter of beforeRender :
$this->set($this->Auth->user());

On 19 fév, 11:14, amarradi <[email protected]> wrote:
> Hello together,
>
> my Controller has the following action
> function beforeFilter() {
>         parent::beforeFilter();
>         $this->Auth->allow('index','search');
>     }
>
> if i click on the add Action e.q. i will be automatic redirect to the
> login screen. Thats ok.
>
> But how can i set the logged in username on the views? Thanks a lot
>
> many greetings
>
> Marcus Radisch
--~--~---------~--~----~------------~-------~--~----~
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