Example #1
0
 public function getGrouping()
 {
     return $this->hasOne(SettingGroup::className(), ['name' => 'group']);
 }
 public function actionGroupsDelete($name)
 {
     SettingGroup::findOne($name)->delete();
     return $this->redirect(['groups']);
 }