thinkphp has built-in ORG.Util.Page method for paging, which makes paging very simple and fast.
But if a page needs to be paginated twice, a conflict will occur. Here is the solution from Baidu
It can be said to be a method with no technical content:
Copy and rename Page.class.php, such as nPage.class.php.
and add
in nPage.calss.php$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'p'
changed to
$this->varPage=C('VAR_PAGE')?C('VAR_PAGE'):'np'
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...