url生成带域名就有问题

浏览:344 发布日期:2020/09/02 分类:ThinkPHP5专区
Route::rule('blog/:id','index/blog/read');//注册路由

url('index/blog/read','id=5','html','blog.thinkphp.cn');
如带上域名blog.thinkphp.cn 生成的url路径没有根据上面的路由生成,不设置或者设置true 路由是没问题的 指定域名就不行
最佳答案
评论( 相关
后面还有条评论,点击查看>>