TP5 Url生成不支持二维传参吗

浏览:347 发布日期:2017/08/05 分类:ThinkPHP5专区 关键字: url生成
我想生成的url为
/home/product/list/where[price]/20-50/where[posid]/5.html
编写代码:
\think\Url::build(
'home/Index/index',
[ 'where'=>['status'=>1,'price'=>'20-50'] ]
);
生成的url变成了
/home/index/index/where/.html

web开发中这样的二维传参方式会经常用到,不知道有没有大神遇到过
最佳答案
评论() 相关
后面还有条评论,点击查看>>