Because the you are using the javascript helper in your default layout
you need to include the javascript helper all your controllers or
alternatively add it to the AppController.
In /app/app_controller.php add
var $helpers = array('Html', 'Form' , 'Ajax', 'Javascript');
This will make all the
i have that in my application but still im getting those errors, im
stumped :S
Geoff Ford wrote:
> Actually that should have been $helpers = array('Javascript') not
> $components
>
> On Jun 1, 1:22 pm, rtanz <[EMAIL PROTECTED]> wrote:
> > Hi i am trying to complete the ajax todo list tutorial
>
Actually that should have been $helpers = array('Javascript') not
$components
On Jun 1, 1:22 pm, rtanz <[EMAIL PROTECTED]> wrote:
> Hi i am trying to complete the ajax todo list tutorial
> athttp://grahambird.co.uk/cake/tutorials/ajax.php
>
> However i am getting this error after editing the def
Make sure you define the helpers you need in the controllers that use
that layout.
ie:
class FoobarsController extends AppController {
var $name = 'Foobars';
var $helpers = array('Html', 'Form' , 'Ajax', 'Javascript');
--~--~-~--~~~---~--~~
You
Try adding
$components = array('Javascript');
To your controller.
Also you should not bediting the default layout in the cake folder.
Copy it to the app/views/layout folder and edit from there
On Jun 1, 1:22 pm, rtanz <[EMAIL PROTECTED]> wrote:
> Hi i am trying to complete the ajax todo list t
Hi i am trying to complete the ajax todo list tutorial at
http://grahambird.co.uk/cake/tutorials/ajax.php
However i am getting this error after editing the default.thtml file
in layouts folder:
Notice: Undefined variable: javascript in W:\www\cake\cake\libs\view
\templates\layouts\default.thtml