/**
  * Creates a new Content model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Content();
     foreach (Yii::$app->request->post('ContentTranslation', []) as $language => $data) {
         foreach ($data as $attribute => $translation) {
             $model->translate($language)->{$attribute} = $translation;
         }
     }
     if (Yii::$app->request->post('ContentTranslation', []) && $model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'id' => $model->id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }