Ajax Paging/sorting in cakephp 2.0

前端 未结 3 787
广开言路
广开言路 2020-12-22 10:33

I am using cakephp 2.0 and trying to create ajax paging which i cant in the documentation i read that passing this

$this->Paginator->options(
                  


        
3条回答
  •  半阙折子戏
    2020-12-22 11:01

    Please don't forget to add the $this->Paginator->numbers() after you tell pagination helper that you want a javascript link instead of plain html

        Paginator->options(array(
            'update' => '#content',
            'evalScripts' => true,
            'before' => $this->Js->get('#busy-indicator')->effect('fadeIn', array('buffer' => false)),
            'complete' => $this->Js->get('#busy-indicator')->effect('fadeOut', array('buffer' => false)),
        ));
        ?>
        Paginator->numbers();?>
    

提交回复
热议问题