任何人都有想法在cakephp中设置分页的样式,我想显示下面的分页链接
<< << << 10 11 12 13 Page 14 of 75 (223 items) 15 16 17 18 >> >>>>
请告诉我,谢谢
答案 0 :(得分:2)
http://book.cakephp.org/view/1233/Pagination-in-Views
你可以用助手做大部分工作,但你必须手动做一些循环和计算“10 11 12 13”和“15 16 17 18”部件。
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'));