public function actionConfig() { if (Yii::$app->request->post('is_send')) { User::saveConfig(['show_delete' => Yii::$app->request->post('show_delete', 0)]); // $this->refresh(); } $params = User::getConfig(); return $this->render('config', ['params' => $params]); }