Re: How to extend ajax helper?

2009-05-17 Thread Dr. Loboto

Much better is App::import('Helper', 'Ajax') - paths may vary, you
should let cake find file.

On May 16, 12:39 am, Nancy  wrote:
> Great thanks!
>
> On May 14, 10:02 pm, Kyo  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?

2009-05-15 Thread Nancy

Great thanks!

On May 14, 10:02 pm, Kyo  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?

2009-05-14 Thread Kyo

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?

2009-05-14 Thread Nancy

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:
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---