public function actionGroupsDelete($name) { SettingGroup::findOne($name)->delete(); return $this->redirect(['groups']); }