In the app_controller.php you must either do var $uses =
array('User'); or in the beforeRender() do an App::import('Model',
'User');

On Nov 28, 3:35 pm, skoggins <[EMAIL PROTECTED]> wrote:
> Thanks!  beforeRender works but now I get this error:
>
> Notice: Undefined property: AppController::$User in C:\accounts
> \placeholder\app\app_controller.php on line 48
>
> Fatal error: Call to a member function findById() on a non-object in C:
> \accounts\placeholder\app\app_controller.php on line 48
>
> Any ideas why?
>
> On Nov 26, 5:54 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > beforeRender is usually better for that stuff than beforeFilter
> > because its possible that you are overwriting user somewhere in you
> > controllers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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