Brent, In your code of var $uses = array(<anything>), does the <anything> include the Javascript helper? If you did not, it needs to be added whenever you manually specify the $uses variable. If you did, we'll need more information like a bigger snippet of your code as well as the CakePHP version number, for context.
Cheers, Au Yong On Oct 4, 5:26 pm, 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? > > thanks, > Brent --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
