add Cookie to your components list in the controller

leo a écrit :
> I haven't had time to pin this down further than....
>
> If I use the cake directory from the 1.2 beta auth works but if I use
> the 1.2 rc1 it's broken.
>
> The cookie code came from the manual  @ 5.2.2.7
>
> The error is:
>
> Notice (8): Undefined property:  UsersController::$Cookie [APP
> \controllers\users_controller.php, line 44]
>
> Code
>
>         if (empty($this->data))
>
>         {
>
>             $cookie = $this->Cookie->read('Auth.User');
>
> UsersController::login() - APP\controllers\users_controller.php, line
> 44
> Object::dispatchMethod() - CORE\cake\libs\object.php, line 114
> Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 261
> Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 233
> [main] - APP\webroot\index.php, line 84
--~--~---------~--~----~------------~-------~--~----~
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