I forgot to add that if I remove 'echo $javascript->link('js.js');'
nothing is rendered at all. Even if I hand code the link to the
JavaScript. It's truly bizarre and has broken my entire application.
On Friday afternoon no less. :-(

On Feb 27, 1:42 pm, Tony Thomas <truet...@gmail.com> wrote:
> 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. TheJavaScriptfile 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 <eric.rei...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to