Hi, I'm trying to figure out the DataTables for my project on Yii2. I have your widget, but I do not understand how to use it. Very few examples in README. For example, the following code is shown there:
$searchModel = new ModelSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
But what is this $searchModel? Or is it an ordinary ActiveRecord, and I'm asked to search for myself? It would be nice if-then there was a search (for all the parameters required for this are passed in the request as far as I understand). And what for $dataProvider again you use in the example? Do you need to implement it yourself?
Hi, I'm trying to figure out the DataTables for my project on Yii2. I have your widget, but I do not understand how to use it. Very few examples in README. For example, the following code is shown there:
But what is this $searchModel? Or is it an ordinary ActiveRecord, and I'm asked to search for myself? It would be nice if-then there was a search (for all the parameters required for this are passed in the request as far as I understand). And what for $dataProvider again you use in the example? Do you need to implement it yourself?