I am using CakePHP since last 5 years, and am quite used to of “AjaxHelper” for developing Ajax features using CakePHP. But from version 1.3 CakePHP has started deprecating the “AjaxHelper” replacing it with new “JsHelper”, which can be used with many JS libraries.
While AjaxHelper is still there for people like me. There is at least one big change that I noticed just now. It is related with working of Ajax Pagination.
//Add this line below above line
$this->helpers['Paginator'] = array('ajax' => 'Ajax');
I tried it several times changing values and variables but no success.
Instead of above you can use following two lines in the view file to tell the “Paginator”, to use Ajax helper.
$this->Paginator->_ajaxHelperClass = "Ajax";
$this->Paginator->Ajax = $this->Ajax;
$this->Paginator->options(array("update" => "",'evalScripts' => true));
You also do NOT need to add the line
at the end of view file.