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 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]> wrote: > > > what happens when you link the the js file by using this method <?php > > echo $javascript->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: > > > \xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8 > > > > Controller code: > > > > var $components = array('RequestHandler','Security'); > > > var $helpers = array('Form','Javascript','Html'); > > > > default.ctp line 8 > > > <?php echo $javascript->link('/js/ext-2.0.1/ext-custom.js'); ?> > > > > Anyone has any ideas? > > > Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---