【发布时间】:2015-01-29 22:06:36
【问题描述】:
我需要通过在 Yii2 控制器操作中使用渲染来向 url 添加一些参数。例如添加 cat=all 参数到以下网址:
localhost/sell/frontend/web/index.php?r=product/index
这是我的索引操作:
return $this->render('index', [
'product' => $product,
]);
【问题讨论】:
标签: php url routing yii2 render