search(Yii::$app->request->queryParams); return $this->render('index', ['dataProvider' => $dataProvider]); } public function actionSetState($id) { $model = Task::findOne($id); if($model && $model->load(Yii::$app->request->post(), '')) { $model->save(); return true; } throw new BadRequestHttpException(); } }