/** * Creates a new EducationLevel model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new University(); if ($model->load(Yii::$app->request->post())) { /*print_r($model); die();*/ $model->uni_code = $model->uni_code; $model->uni_name = $model->uni_name; $model->uni_status = 0; $model->save(); return $this->redirect(['view', 'id' => $model->uni_id]); } else { return $this->render('create', ['model' => $model]); } }