/**
  * Creates a new Academic model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Academic();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'id' => $model->id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }
 /**
  * Creates a new Applicant model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model1 = new Applicant();
     $model2 = new Personal();
     $model3 = new Academic();
     if ($model1->load(Yii::$app->request->post()) && $model2->load(Yii::$app->request->post()) && $model3->load(Yii::$app->request->post()) && $model1->save() && $model2->save() && $model3->save()) {
         return $this->redirect(['view', 'id' => $model1->id]);
     } else {
         return $this->render('create', ['model1' => $model1, 'model2' => $model2, 'model3' => $model3]);
     }
 }