Somewhere you're not loading in the Javascript helper. Try Sam's tip. Calling $var helpers in the controller loads the helper for that controller. Calling $var helpers in \app\app_controller.php will load the helpers for all controllers.
D On Jan 24, 3:04 pm, "lukemack" <[EMAIL PROTECTED]> wrote: > thanks for the replies. the pr($this->helpers) only returns: > > Array > ( > [0] => Html > ) > > on default.thtml but contains javascript and html if i place it in a > view for another controller. i'm new to cake and am just > usinghttp://mysite/to view the default page andhttp://mysite/tasksto view > the the data coming back from the the tasks_controller. > > thanks, > > lukemack. > > On 24 Jan, 19:21, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > > try creating an app_controller.php file at the app level and add it > > there, it might not be a part of the pages controller > > > On 1/24/07, dkarlson <[EMAIL PROTECTED]> wrote: > > > > That should do it. Maybe there's something else going on? > > > > Try putting pr($this->helpers); into your view. It should list > > > Javascript if Cake is loading the helper. > > > > D > > > > On Jan 24, 12:45 pm, "lukemack" <[EMAIL PROTECTED]> wrote: > > > > i tried adding var $helpers = array('Html', 'Javascript', 'Ajax'); > > > > > to all controllers - does it need to be somewhere else too?-- > > == > > S. DeVore > > (the old fart) the advice is free, the lack of crankiness will cost you --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
