Home > Backend Development > PHP Tutorial > thinkphp分页问题,怎样获取当前页是第几页?

thinkphp分页问题,怎样获取当前页是第几页?

WBOY
Release: 2016-06-23 13:59:52
Original
1766 people have browsed it

thinkphp分页问题,怎样获取当前页是第几页?比如共5页,每页10行。当前页是第3行。怎样获取当前页?


回复讨论(解决方案)

当前页是第3页。怎样在页面中用{$XXX}表示?

分页类setConfig里面有个属性:nowPage。

分页类setConfig里面有个属性:nowPage。
怎样让他显示出来呢?后台$this ->assign('nowPage',$nowPage)和前台{$nowPage}都显示不出来

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