/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function newTask()
 {
     $model = new sTask();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     if (isset($_POST['sTask'])) {
         $model->attributes = $_POST['sTask'];
         if ($model->save()) {
             Yii::app()->user->setFlash('success', 'data has been saved successfully');
             $this->refresh();
         }
     }
     return $model;
 }