Home  >  Article  >  php教程  >  thinkphp 一个页面使用2次分页的实现方法

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

WBOY
WBOYOriginal
2016-06-13 11:43:04988browse

可以说是毫无技术含量的办法:
将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里直接引用这个类分页,就不会和原来的冲突了……

Statement:
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