Ajax Pagination CakePHP 1.3

I am wondering how to specify you want ajax pagination in the CakePHP 1.3 core.

this is my current $paginator array which properly performs Ajax pagination on the 1.2 core. On the 1.3 it just creates a normal link.


$paginator->options(array(
    'update'=>'mainList', 
    'url'=>array(
        'controller'=>'items', 'action'=>'main_items_list'),
        'indicator'=>'loading'));

how can I update this to work with 1.3?

Thanks everyone!

Asked by davidcroda, on 29/11/09

1 Answer

Make sure you have the required $js->writeBuffer(); calls included. The indicator option is not supported by the JsHelper at this point in time. If you'd like to continue using the AjaxHelper to do pagination, you can do that as well. By adding the PaginationHelper to your helpers manually and you can choose which class will do the Ajax pagination.


$this->helpers['Paginator'] = array('ajax' => 'Ajax');

Will let you use the AjaxHelper for ajax pagination in 1.3

Answered by markstoryon 15/12/09

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Tagged with

Rating

0

Viewed

912 times

Last Activity

on 15/12/09