/** * Creates a new GlobalConfig model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate($group) { $model = new GlobalConfig(['group' => $group]); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'group' => $group, 'name' => $model->name]); } return $this->render('create', ['model' => $model, 'group' => $group, 'schema' => $this->getSchema($group)]); }