/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate($uc = '', $cat = '')
 {
     $model = new UseCaseEvent();
     $model->use_case = $uc;
     $model->category = $cat;
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     if (isset($_POST['UseCaseEvent'])) {
         $model->attributes = $_POST['UseCaseEvent'];
         if ($model->save()) {
             $this->redirect(array('useCase/view', 'id' => $model->use_case));
         }
     }
     $this->render('create', array('model' => $model));
 }