RC5版本的伪静态后缀问题

浏览:335 发布日期:2019/10/15 分类:ThinkPHP6专区 关键字: thinkphp6.0
使用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会出现这个问题。
最佳答案
评论( 相关
后面还有条评论,点击查看>>