/** * ACTION CREATE note | $id=PrimaryKey -> TRIGER FROM VIEW -ptr.nov- */ public function actionCreate() { $model = new Jabatan(); if ($model->load(Yii::$app->request->post())) { var_dump($model->validate()); if ($model->validate()) { if ($model->save()) { return $this->redirect(['view', 'id' => $model->JAB_ID]); } } } else { return $this->render('create', ['model' => $model]); } }