Re: How to extend ajax helper?
Much better is App::import('Helper', 'Ajax') - paths may vary, you should let cake find file. On May 16, 12:39 am, Nancy nancy.milli...@gmail.com wrote: Great thanks! On May 14, 10:02 pm, Kyo ready2jam2n...@gmail.com wrote: Use require_once() before the class statement and it'll do the trick. require_once LIBS . 'view'. DS . 'helpers' . DS . 'ajax.php'; class MyAjaxHelper extends AjaxHelper { } hth --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to extend ajax helper?
Great thanks! On May 14, 10:02 pm, Kyo ready2jam2n...@gmail.com wrote: Use require_once() before the class statement and it'll do the trick. require_once LIBS . 'view'. DS . 'helpers' . DS . 'ajax.php'; class MyAjaxHelper extends AjaxHelper { } hth --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to extend ajax helper?
I found some code which extends the AjaxHelper I dropped it into the app/views/helpers directory and called it myajax.php and it complains: Fatal error: Class 'AjaxHelper' not found in C:\xampp\www\pdkhi\app \views\helpers\myajax.php on line 2 Here's the header at the top: ?php class MyajaxHelper extends AjaxHelper { And I'm including Myajax as a helper in my controller. Does this need to go in lib/helpers instead? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to extend ajax helper?
Use require_once() before the class statement and it'll do the trick. require_once LIBS . 'view'. DS . 'helpers' . DS . 'ajax.php'; class MyAjaxHelper extends AjaxHelper { } hth --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---