/**
  * Creates a new DctVaccination model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new DctVaccination();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'id' => $model->dct_vaccination_id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }
 /**
  * Creates a new DctVaccination model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new DctVaccination();
     $languages = $this->getLanguages();
     $modelLoc = new DctVaccinationLoc();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         $params = Yii::$app->request->post();
         DctVaccinationLoc::saveLocalizationData($model, $params, count($languages));
         return $this->redirect(['view', 'id' => $model->dct_vaccination_id]);
     } else {
         return $this->render('create', ['model' => $model, 'languages' => $languages, 'modelLoc' => $modelLoc]);
     }
 }