/**
  * Creates a new Research model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Research();
     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 Research model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Research(['scenario' => 'default', 'submission_status' => Research::SUBMISSION_STATUS_DRAFT]);
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         $this->addLog($model->id, serialize($model->attributes), 'create', 'Create Record');
         return $this->redirect(['attach-files', 'research_id' => $model->id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }