/** * Creates a new DraftPlanGroup model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new DraftPlanGroup(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->SCDL_GROUP]); } else { return $this->render('create', ['model' => $model]); } }
public function actionPlanUser() { $model = new DraftPlanGroup(); if ($model->load(Yii::$app->request->post())) { $ary = self::get_execute_plan($model->SCL_NM, $model->USER_ID); return $this->redirect(['index?tab=4']); } else { return $this->renderAjax('_pilihuser', ['model' => $model, 'geo' => $this->get_arygeoplangroup(), 'user' => self::get_aryUserCrmSales()]); } }