tp5.0.24 config.php文件只打开了调试和trace,相关的控制器和方法都已经写好了。
在route.php 里面定义路由:
use think\Route;
Route::rule('hello', 'index/Index/hello');
然后访问
http://127.0.0.1/index/index/...
提示非法请求。
但是如果改成
use think\Route;
Route::rule('hello', 'Index/hello');
然后再访问
http://127.0.0.1/index/index/...
会正常显示。这个是为什么?