Or alternatively, I found that Chris's method was sometimes unreliable
for me - this is a very configuration dependent component - so I RE-
declare the auth component:

    class UsersController extends AppController
    {
        var $components = array('Auth','Cookie');

    ...

    }

The addition of 'Cookie' is because something changed between beta &
RC1and it's needed if you use cookies to remember a user.

Leo


On 30 Juny, 15:09, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Sun, Jun 29, 2008 at 5:36 PM, peele <[EMAIL PROTECTED]> wrote:
>
> > I've searching this group and other resources for a day and half,
> > tried multiple combinations of things, looked for whitespace. I'm
> > familiar with php but new to cake. Thank you for your help.
>
> You are missing a beforeFilter() method in your user controller:
>
> beforeFilter() {
>      parent::beforeFilter();
>
> }
>
> Without that, the user controller does not know that you are trying to
> use Auth.  At least, that has been my experience.
>
> --
> 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