Nov
09
2007

A True JQuery Ajax Helper for CakePHP

Cakephp comes with a class called the AjaxHelper. This file should really be called the PrototypeHelper. The caveat to the AjaxHelper is that to use it, you must also include the Prototype and Sciptaculous javascript libraries in your webroot to make it work.

I prefer working with the Jquery javascript library. Out of the box I cannot use Jquery with the AjaxHelper. The Cakephp Bakery has a Jquery Helper, but it does not have the same functionality as the ajax Helper. I did a search and found Pquery. Pquery is a Php helper class for Jquery. It is on the NGCoders site and they even have a Cakephp version.

I think that the developers of Cake should think about how other Javascript frameworks might play with Cake. I will be calling the PqueryHelper the AjaxHelper in my applications.

Written by Joel Brass in: cakephp |

2 Comments »

  • Hi, I thought I’d leave a note to update your link as it led to a 404 error. Cheers for the link – I’ve been hunting for a decent Jquery library – tried the one on Bakery and it’s missing files and all sorts so impossible to work with.

    Haven’t tried this one out yet, but will let you know how I get on – thanks again,

    btw – here’s the link:
    http://www.ngcoders.com/php/pquery-php-and-jquery

    Comment | October 29, 2008
  • admin

    Thanks Matt. I updated the link.

    UPDATE:

    To be honest I never really used this. I found it easier to just write the jQuery code write in the view or in an external js file depending on the situation.

    Comment | November 18, 2009

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | jbrass.com | Since 1997