Anyone have any idea to style the pagination in cakephp,I want to display the pagination links like below
<< << << 10 11 12 13 Page 14 of 75 (223 items) 15 16 17 18 >> >>>>
Please advise me,thanks
http://book.cakephp.org/view/1233/Pagination-in-Views
Most of it you can do with the helper, but you'll have to do "10 11 12 13" and "15 16 17 18" parts manually with some loops and calculations.
echo $this->Paginator->prev('<< << <<', null, null, array('class' => 'disabled'));
//insert previous numbers here
echo $this->Paginator->counter(array(
'format' => 'Page %page% of %pages% (%count% items)'
));
//insert next numbers here
echo $this->Paginator->next('>> >>>>', null, null, array('class' => 'disabled'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.