/**
  * Creates a new MappingQuestionsCodes model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new MappingQuestionsCodes();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['index', 'id' => $model->id]);
     } else {
         $languages = Lang::find()->all();
         $languageDefault = Lang::findOne(['default' => 1]);
         return $this->render('create', ['model' => $model, 'languages' => $languages, 'languageDefault' => $languageDefault]);
     }
 }