Hey,

if you want to use Auth info in your views it is very simple.

Try this in your view: pr($session->read('Auth.User')); //assuming User is
your login model, otherwise try pr($session->read('Auth'));

Hope you find this handy,
Faifas


On Mon, May 18, 2009 at 12:59, Marojahan M.T. Sigiro <maroja...@gmail.com>wrote:

>
> hi guys... a view days ago as far as i know, my code ran well
>
> i try to set a variable in custom app_controller class
>
> $this->set('Auth',$this->Auth->user());
>
> i did this because i plan to use that variable in views.
>
> mybe like print_r($Auth)
>
> now my code display warning that says..
>
> *Notice* (8): Undefined variable: Auth [*APP\views\users\login.ctp*, line *3*]
>
> does anyone know how to solve this problem?
>
>
> --
> ---
> I Don't Know Who/What I Am Yet, But I Know Who/What I Am Not!
> --------------------------------------
> Marojahan M.T. Sigiro
> maroja...@gmail.com
> GTalk : marojahan
> Y! : ojak_s
> http://ojakaja.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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to