Answer the question
In order to leave comments, you need to log in
How to make the search work and display the defined grid data?
I implemented the data so that the data is displayed by status, but in this case I can’t
$dataProvider = new ActiveDataProvider([
'query' => Zakaz::find()->where(['status' => Zakaz::STATUS_MASTER, 'action' => 1])
]);
return $this->render('master', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
$searchModel = new ZakazSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
Answer the question
In order to leave comments, you need to log in
Read carefully:
www.yiiframework.com/wiki/653/displaying-sorting-a...
www.yiiframework.com/wiki/621/filter-sort-by-calculated
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question