Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2009-02-27 Thread Tony Thomas
This must be something unrelated to CakePHP. My local version functions perfectly and now the production server doesn't give me the non-object fatal error, but doesn't include my JavaScript either. (BUT, at least the information is displayed, which is a start.) There's something bizarre happening

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2009-02-27 Thread brian
On Fri, Feb 27, 2009 at 2:42 PM, Tony Thomas 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. The JavaScript file in question is clearly in the HTML, but > everything is broken. What's

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2009-02-27 Thread Tony Thomas
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 wrote: > This problem just cro

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2009-02-27 Thread Tony Thomas
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 p

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2009-02-04 Thread Stonk
Maybe it will help someone in the future. > Undefined variable: 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 "javascr

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-10 Thread Donkeybob
I was just seeing if the same errors happened when you wrote the js path a little different. . . no need to get rude about it. thats how i like to troubleshoot. . . . . On Nov 10, 5:03 am, Antoniov <[EMAIL PROTECTED]> wrote: > Didn't i make it clear? There was an error says: > > Undefined variabl

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-10 Thread Rob
The Javascript helper needs to be in your app_controller.php if you include any calls to the $javascript object. I got this error until I made that modification: class AppController extends Controller { // We use the Html and JavaScript helper across all of our controllers var $helpers

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-10 Thread dr. Hannibal Lecter
Is your controller $helpers array defined in your AppController? Perhaps it is overwritten somewhere? On Nov 10, 11:03 am, Antoniov <[EMAIL PROTECTED]> wrote: > Didn't i make it clear? There was an error says: > > Undefined variable: javascript [APP\views\layouts\default.ctp, line 8] > Fatal erro

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-10 Thread Antoniov
Didn't i make it clear? There was an error says: Undefined variable: javascript [APP\views\layouts\default.ctp, line 8] Fatal error: Call to a member function link() on a non-object in D: \xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8 On Nov 10, 12:27 am, Donkeybob <[EMAIL PROTECTED

Re: "Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-09 Thread Donkeybob
what happens when you link the the js file by using this method link('ext-2.0.1/ext-custom'); ?> ? On Nov 9, 7:18 am, Antoniov <[EMAIL PROTECTED]> wrote: > Undefined variable: javascript [APP\views\layouts\default.ctp, line 8] > Fatal error: Call to a member function link() on a non-object in D:

"Undefined variable: javascript" when Javascript is absolutely loaded

2008-11-09 Thread Antoniov
Undefined variable: javascript [APP\views\layouts\default.ctp, line 8] Fatal error: Call to a member function link() on a non-object in D: \xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8 Controller code: var $components = array('RequestHandler','Security'); var $helpers = array('Form