Answer the question
In order to leave comments, you need to log in
How to add filter outside GridView?
Is it possible to somehow add a filter field to the GridView outside of the GridView? For example, select some over the table, so that it works as it should, the filters are summarized ...
I tried to add a link like
<a href="<?=Url::to([controller/action/],'MySearch[is_active]=>'0'?>')">Неактивные</a>
Answer the question
In order to leave comments, you need to log in
Almost right, but not right. 'MySearch => [is_active =>'0' ]
And even better: The name will be substituted even when you change the name of the form.
$searchForm->getFormName() => [is_active =>'0' ]
<?=Url::to([controller/action/], $searchForm->getFormName() => [is_active =>'0' ])?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question