Hi,

1. I think your Auth array is nullified when you
access in the static pages.
2. You can place the below code in the pages controller.

// Method beforeFilter
        function beforeFilter() {
                parent::beforeFilter();
        }

3. Another check is that print the session in the
before filter in the app_controller. If it is undefined,
then add a code to manually start the session.

4. Thats how i fixed.

Regards,
Krishnan Nair

=============
Cake Bake
=============





mr_timp wrote:
> Hi,
>
> Please bear with me - I'm kinda new to cake.
>
> I have configured a app_controller and have included Auth in the
> components variable so Auth is available throughout all of my
> controllers - that part is fine!
>
> I can login via (for example) /users/login and it seems any method in
> the user controller has access to $this->Auth->user() and its
> populated with an array of the user information.
>
> As soon as I attempt to access it via another controller (for example)
> contact (which is a simple contact form) $this->Auth->user() returns
> nothing!
>
> I must be doing something wrong and the documentation on the cake site
> is pretty basic at best.  Anyone out there know what I'm doing wrong?
>
> Your assistance is much appreciated!
--~--~---------~--~----~------------~-------~--~----~
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