public function actionGroupsCreate() { $model = new SettingGroup(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['groups']); } return $this->render('groups-create', ['model' => $model]); }