/**
  * Create model page.
  */
 public function actionCreate()
 {
     $model = new CommentModel(['scenario' => 'admin-create']);
     $statusArray = CommentModel::statusLabels();
     if ($model->load(Yii::$app->request->post())) {
         if ($model->validate()) {
             if ($model->save(false)) {
                 return $this->redirect(['update', 'id' => $model->id]);
             } else {
                 Yii::$app->session->setFlash('danger', Module::t('admin', 'BACKEND_FLASH_FAIL_ADMIN_CREATE'));
                 return $this->refresh();
             }
         } elseif (Yii::$app->request->isAjax) {
             Yii::$app->response->format = Response::FORMAT_JSON;
             return ActiveForm::validate($model);
         }
     }
     return $this->render('create', ['model' => $model, 'statusArray' => $statusArray]);
 }