/** * Creates a new DraftGeo model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new DraftGeo(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->GEO_ID]); } else { return $this->render('create', ['model' => $model]); } }
public function actionCreateGeo() { $model = new DraftGeo(); if ($model->load(Yii::$app->request->post())) { $model->save(); return $this->redirect(['esm-index-geo']); } else { return $this->renderAjax('form_create_geo', ['model' => $model]); } }