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

thinkphp 一个页面使用2次分页的实现方法

WBOY
Release: 2016-06-13 11:43:04
Original
986 people have browsed it

可以说是毫无技术含量的办法:
将Page.class.php复制重命名一个,如nPage.class.php.
并在nPage.calss.php中将
$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'p'
改为
$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'np'
当然类名也记得要改为nPage.class.php,然后就在php里直接引用这个类分页,就不会和原来的冲突了……

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!