A
A
agent11562017-01-25 11:16:56
Yii
agent1156, 2017-01-25 11:16:56

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

1 answer(s)
M
Maxim Timofeev, 2017-01-25
@agent1156

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 question

Ask a Question

731 491 924 answers to any question