tp5路由无效

浏览:1235 发布日期:2018/12/16 分类:求助交流
几年没用tp了,后来用laravel去了,之前用的3.x版本,本来想尝试一下tp5,结果发现定义的路由无效,访问的路由全跑首页去了。。。。,要是新手估计要充坑了,有点失望啊;
'url_route_on'=>true,
'url_route_must'=>true,

use Think\Route;
//Route::get('/','api/test/index1');
Route::get('/api/test','/api/test/index2');
最佳答案
评论( 相关
后面还有条评论,点击查看>>