简体   繁体   English

Cakephp分页样式

[英]Cakephp pagination styles

Anyone have any idea to style the pagination in cakephp,I want to display the pagination links like below 任何人有任何想法在cakephp中设置分页样式,我想显示如下的分页链接

<< << << 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 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. 您可以使用助手中的大多数功能,但是必须通过一些循环和计算来手动执行“ 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')); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM