Answer the question
In order to leave comments, you need to log in
I generate a SearchController, how do I replace the search input with a list of categories?
I generate a SearchController, how do I replace the search input input with a list of categories in index?
Answer the question
In order to leave comments, you need to log in
Your question is a cry from the heart, there are no facts and logic in it. I can only assume that we are talking about a gridView in which you need to set up a filter. If yes then like this:
'attribute'=>'someMyAttribute',
'filter'=>['вариант1', 'вариант2','вариант3']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question