On Oct 4, 10:26 am, Brent Rieck <[EMAIL PROTECTED]> wrote:
> Hello,
>    If I add a var $uses = array(<anything>) to app/app_controller.php I
> get the "Fatal error: Call to a member function on a non-object" error
> whenever trying to use the javascript helper in my default layout.  If I
> comment out the $uses line the javascript helper works as intended.
>
> Is there a way around this?  Or am I doing something wrong?

comment out in your layout where you are using the js helper and read
the error message which cake is desperately trying to get you to read.
also you could/should add the js helper to your app controller helpers
array, since obviously you are using it everywhere.

hth,

AD


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