Re: ajax tutorial problems

2007-06-04 Thread Geoff Ford
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

Re: ajax tutorial problems

2007-06-01 Thread rtanz
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 >

Re: ajax tutorial problems

2007-05-31 Thread Geoff Ford
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

Re: ajax tutorial problems

2007-05-31 Thread Joshua McFarren
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

Re: ajax tutorial problems

2007-05-31 Thread Geoff Ford
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

ajax tutorial problems

2007-05-31 Thread rtanz
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