/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     $alreadySignup = false;
     if (!Yii::app()->user->isGuest) {
         $alreadySignup = StudentEvent::model()->exists('user_id=:user_id AND post_item_id=:post_item_id', array(':user_id' => Yii::app()->user->id, ':post_item_id' => $id));
     }
     $this->render('view', array('model' => new EventForm('view', $id), 'alreadySignup' => $alreadySignup));
 }