Re: how can access the Auth info form view

2008-04-23 Thread real34
Hi, I'm new with Cake, but maybe a way could be to use : $this->Auth- >user('a_boolean_activation_var') I'm currently learning to use Auth so I'm also interested in other answers ... :o) On 23 avr, 08:14, candesprojects <[EMAIL PROTECTED]> wrote: > And without $session->check('Auth.User.id')) t

Re: how can access the Auth info form view

2008-04-23 Thread djiize
when logged, you can pass user's data to the view $this->set('loggedin_user', $this->Auth->user()); and in your view: if (empty($loggedin_user)) { // not logged in } else { // logged in } On 23 avr, 08:14, candesprojects <[EMAIL PROTECTED]> wrote: > And without $session->check('Auth.User.id'

Re: how can access the Auth info form view

2008-04-22 Thread candesprojects
And without $session->check('Auth.User.id')) there is not helper or someting that let me use $Auth->isAuthentificate and to return true or false? If not I'm thinking to create a helper for this, that user $session and get me what I want. On Apr 22, 5:43 pm, francky06l <[EMAIL PROTECTED]> wrote

Re: how can access the Auth info form view

2008-04-22 Thread francky06l
in the view : if($session->check('Auth.User.id')) echo $html->link() .. hth On Apr 22, 4:00 pm, Sliv <[EMAIL PROTECTED]> wrote: > You will probably want to do that in the controller action and set a > variable for the view > > http://manual.cakephp.org/view/172/authentication --~--~-

Re: how can access the Auth info form view

2008-04-22 Thread Sliv
You will probably want to do that in the controller action and set a variable for the view http://manual.cakephp.org/view/172/authentication --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post t

how can access the Auth info form view

2008-04-22 Thread candesprojects
How can I access the Auth info from view? I want to check is the user is logged and display a link if not other. But I want to do in a professional way not true $_SESSION. Tks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google