Re: how can access the Auth info form view

2008-04-23 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:
 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 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
-~--~~~~--~~--~--~---



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



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



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



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