生成url问题?

浏览:320 发布日期:2019/03/02 分类:求助交流
TP5.0.24在本地运行,由于放在二级目录内测试,如:http://localhost/vplay/

我设置了Url::root('/index.php?'.config("var_pathinfo").'='),以便生成:
http://localhost/vplay/index.php?s=/index/index/index/203.html
这样的地址

但是用url('index/index','id=100')实际生成的地址则是:
http://localhost/index.php?s=/index/index/index/203.html
没有了/vplay/,这要怎么设置才能自动获取/vplay/这个参数?

谢谢
最佳答案
评论( 相关
后面还有条评论,点击查看>>