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
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'
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
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
--~--~-
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 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