/**
  * Creates a new Seo model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Seomanager();
     if ($model->load(Yii::$app->request->post())) {
         $model->created = time();
         $model->data = json_encode(['content' => $model->content, 'position' => $model->position]);
         if ($model->save()) {
             return $this->redirect(['view', 'id' => $model->id]);
         }
     }
     return $this->render('create', ['model' => $model]);
 }
 /**
  * Creates a new Seo model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Seomanager();
     if ($model->load(Yii::$app->request->post())) {
         $model->created = time();
         if ($model->save()) {
             return $this->redirect(['view', 'id' => $model->id]);
         }
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }