/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     if (!isset($_SESSION['filemanager'])) {
         $_SESSION['filemanager'] = TRUE;
     }
     $_SESSION['currentFolder'] = 'staticHtml/';
     $model = new StaticHtml();
     if (isset($_POST['StaticHtml'])) {
         $model->attributes = $_POST['StaticHtml'];
         if ($model->validate()) {
             if ($model->save()) {
                 Yii::app()->user->setFlash('success', Yii::t('staticHtml', 'Add HTML successfully.'));
             } else {
                 Yii::app()->user->setFlash('error', Yii::t('staticHtml', 'Add HTML failed. Please try it later.'));
             }
             $this->redirect(array('/' . backend . '/staticHtml/admin'));
         }
     }
     $this->render(strtolower($this->action->Id), array('model' => $model));
 }