<a href="{:url('Blog/det',['id'=>$art['id']])}" >aaa</a>
定义的路由:Route::rule('blog/:id','Blog/det');
生成的结果是:http://locblog.xxxxxx.com/232.html 不知道什么原因
我又改成了
Route::rule('blogaaaa/:id','Blog/det');
生成的结果是:http://locblog.xxxxxx.com/aaa/214.html
好怪异,似乎路由名称 不能 控制器 同名。。。。
自动把blog给你干掉了。。导致链接是错误的
我需要的域名结果是:
http://locblog.xxxxxx.com/blog/214.html
不知道这是不是url生成规则的bug
背景:使用了域名路由功能
最佳答案
