Home > php教程 > php手册 > body text

ThinkPHP 3.2.3 分页代码样式分享

WBOY
Release: 2016-06-07 11:38:05
Original
1571 people have browsed it

关于分页样式文档里不够详细,这里小小的整理了一下。

需要修改Page.class.php里lastSuffix为false,这样才能修改last显示标题。$Page = new Page($count,20);// 实例化分页类 传入总记录数和每页显示的记录数<br> $Page -> setConfig('header','共%TOTAL_ROW%条');<br> $Page -> setConfig('first','首页');<br> $Page -> setConfig('last','共%TOTAL_PAGE%页');<br> $Page -> setConfig('prev','上一页');<br> $Page -> setConfig('next','下一页');<br> $Page -> setConfig('link','indexpagenumb');//pagenumb 会替换成页码<br> $Page -> setConfig('theme','%HEADER% %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%');<br> $this -> page = $Page->show();

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!