Home > Backend Development > PHP Tutorial > thinkphp 连接为什么自动跳转

thinkphp 连接为什么自动跳转

WBOY
Release: 2016-06-23 13:43:28
Original
1405 people have browsed it

http://localhost/index.php?&g=User&m=Medical&a=index&cid=14 我进入后 会自动跳转到http://localhost/index.php?&g=User&m=Repast&a=index&cid=14 为什么 我这个Medical控制器没写跳转的逻辑呀 


回复讨论(解决方案)

是不是之前include的类有跳转。例如未登入。

清除根目录缓存,然后查看你的Medical的父类,是否有跳转语句

或者是空模块的跳转语句

贴出具体代码看看,如果没写的,应该不会自动跳转的,并且url还是规定好的。

清除根目录缓存,然后查看你的Medical的父类,是否有跳转语句



Conf\logs\Cache
缓存只有这一个文件夹吗?还有没有别的目录

缓存是Runtime里的

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