使用Route::buildUrl('wap/news/detail',['nid'=>13])->build();生成的URL
http://127.0.0.1:8000/wap/news/detail.html?nid=13
报错控制器不存在:app\router\controller\Wap
添加路由Route::get('/detail','wap/news/detail')->ext('html');依然无法解决问题。不加.html后缀可以正常访问
已经找到问题所在,用内置服务器php think run会出现这个问题。