Home >php教程 >php手册 >thinkphp里分页类中前后台ulr不统一的问题

thinkphp里分页类中前后台ulr不统一的问题

WBOY
WBOYOriginal
2016-06-07 11:37:171203browse

thinkphp里分页类中前后台ulr不统一的问题
修改一下thinkphp的page类,如下:
//这里原来是 $this->url = U(ACTION_NAME, $this->parameter);这样的,
修改成$this->url = U($_SERVER['REQUEST_URI'], $this->parameter);这样的
下面就省略。。。。
经过本人测试,这样可以解决前后台url不一致的问题,各位大哥大姐多指教

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
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