On Sat, Apr 26, 2008 at 3:05 AM, Kyle Decot <[EMAIL PROTECTED]> wrote:
>  function login() {
>
>  if ($this->Auth->user()) {
>
>  echo "working so far";
>
>  }
>  else { echo "not working at all"; }
>
>  }
>
>  the page always returns "not working at all". Am I doing something
>  wrong with this tutorial? Is there another way I should be going about
>  this? Thank you as always for the help.

According to the API:

"Returns:
    array User record, or null if no user is logged in"

So, if you keep getting null that means you're not successully logged
in, so I suspect that the problem might be somewhere else.  I suggest
you paste your code in http://bin.cakephp.org so others can take a
look at your entire setup.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

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