Home > Backend Development > PHP Tutorial > thinkphp 一个页面使用2次分页的实现方法_PHP

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

WBOY
Release: 2016-06-01 12:03:58
Original
755 people have browsed it

ThinkPHP

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

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template