S
S
Stepan2015-10-07 01:25:17
Yii
Stepan, 2015-10-07 01:25:17

How to organize a search with a filter in Yii2?

Actually there is a search form and it has a lot of different parameters.
According to these parameters, you need to show something relevant.
Here is the most relevant everything from the model receives on requests to api
Began to do through the ListView. I have about 8 different models, and almost all have different values.
How to organize it all correctly, as I understand it, you need to do this through $dataProvider
Maybe someone will share a link or personal experience.
And further. What is the best way to organize ajax?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2015-10-07
@coderisimo

1) topics for searches: dataprovider, criteria, scope.
2) what did the standard jquery methods not please?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question