命令行输出并生成路由列表

浏览:1133 发布日期:2018/09/13 分类:求助交流 关键字: thinkphp5.1 route
TP5.1 执行php think route:list命令返回错误
错误信息: There are no commands defined in the "route" namespace.

给route.php添加namespace route;
返回错误: Fatal error: Class 'route\Route' not found

添加use think\Route;
返回错误:Non-static method think\Route::get() should not be called statically

修改为use think\facade\Route;
又返回:There are no commands defined in the "route" namespace.

没救了。。。
最佳答案
评论( 相关
后面还有条评论,点击查看>>