thinkphp USES a two pagination implementation for a page

  • 2020-07-21 07:18:48
  • OfStack

It can be said that there is no technical method:
Copy Page.class.php and rename one such as nPage.class.php.
And in nPage.calss.php
$this- > varPage=C('VAR_PAGE')?C('VAR_PAGE'):'p'
Instead of
$this- > varPage=C('VAR_PAGE')?C('VAR_PAGE'):'np'
Of course, change the name of the class to nPage.class.php, and then refer to the class page directly in php.


Related articles: