Home  >  Article  >  Backend Development  >  ThinkPHP 3.2.2 路由配置完,无法加载控制器

ThinkPHP 3.2.2 路由配置完,无法加载控制器

WBOY
WBOYOriginal
2016-06-23 13:47:521233browse

当使用 localhost/repair/index/id/0 访问的时候是有效的
按着规则设置了路由 'u' => '/repair/index' ,
访问 localhost/u/id/0,却显示无法加载控制器,请问是什么原因呢?谢谢!

配置文件的目录是没错的。

非常着急呀,谢谢各位啦!


回复讨论(解决方案)

非常感谢。。已经找到问题所在了。 URL_ROUTE_RULES 不注意写成了 URL_ROUTER_RULES

帮你接分

哈哈,我也是来接分的。写错代码导致错误,确实也耽误不少时间。以后要注意了

哈哈,把分给第一个接的

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