【发布时间】:2018-07-19 07:16:46
【问题描述】:
在 Yii2 我有这样的搜索链接:localhost/project/web/?ItemSearch%5Btitle%5D=star
如何将其更改为:localhost/project/web/?title=star?
这是我的表格
<?= $form->field($model, 'title') ?>
它看起来像这样
<input type="text" name="ItemSearch[title]">
当我尝试将其更改为:
<input type="text" name="title">
搜索不起作用,但链接看起来不错。
你知道怎么做吗?
【问题讨论】:
-
您在使用
GridView搜索表单吗?
标签: php forms search hyperlink yii2