Home >Backend Development >PHP Tutorial >How to implement 2 paging on a page in thinkphp
This article mainly introduces the implementation method of using 2 paging on a page in thinkphp. It has certain reference value. Now I share it with you. Friends in need can refer to
thinkphp built-in ORG. The Util.Page method paging makes paging very simple and fast. However, if a page needs to be paginated twice, a conflict will occur. Here we will record Baidu’s solution. Friends in need can refer to
which can be said to be a non-technical method:
Copy and rename Page.class.php, such as nPage.class.php.
And change
$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'p'
to
$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'np'## in nPage.calss.php #Of course, remember to change the class name to nPage.class.php, and then directly reference this class paging in php, so that it will not conflict with the original one...
Introduction to php processing Chinese string interception (mb_substr) and obtaining the number of characters in Chinese strings
Regarding the efficiency issue of php address reference
dedecms page how to obtain member status
The above is the detailed content of How to implement 2 paging on a page in thinkphp. For more information, please follow other related articles on the PHP Chinese website!