Closed codebymark closed 11 years ago
I was having trouble with the pagination changing pages, so I modified the DataTableComponent _paginate() method to include this line at the bottom:
$settings['page'] = 1 + ($this->_params['iDisplayStart'] / $limit);
I haven't looking into the documentation enough but I don't think that the offset parameter works.
Note: I am using Cake lib v2.1.3.
Really really true!!
I'll look into this when I get a chance.
Cake takes the page number and with the limit sets the 'offset' key. Pagination has always worked for me. Marking as closed.
I was having trouble with the pagination changing pages, so I modified the DataTableComponent _paginate() method to include this line at the bottom:
$settings['page'] = 1 + ($this->_params['iDisplayStart'] / $limit);
I haven't looking into the documentation enough but I don't think that the offset parameter works.
Note: I am using Cake lib v2.1.3.