This problem just cropped up out of the blue for me. I made no changes to the AppController where the helpers are defined. I can't figure it out. The JavaScript file in question is clearly in the HTML, but everything is broken.
I had made a simple change to a different controller that seemed to precipitate the error, but commenting out the function in question has no effect. Does anyone have any idea why this would seem to happen spontaneously? On Feb 4, 11:29 am, Stonk <[email protected]> wrote: > Maybe it will help someone in the future. > > >Undefinedvariable:javascript[APP\views\layouts\default.ctp, line 8] > > Fatal error: Call to a member function link() on a non-object in > > xy\default.ctp on line Y > > If one helper can't be loaded (typo), no helper will be loaded. So if > it says "javascriptisundefined", it can be a typo anywhere in the > $helpers var. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
