/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     if (!is_numeric($id)) {
         $this->redirect(array('site/error'));
     }
     $data = WUserTest::getAllTestByCourseId($id);
     $arrCourse = Course::model()->find('id=:id', array(':id' => $id));
     $this->render('view', array('model' => $data, 'course' => $arrCourse));
 }
 /**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     $data = WUserTest::getAllTestByCourseId($id);
     $arrCourse = Course::model()->find('id=:id', array(':id' => $id));
     $this->render('view', array('model' => $data, 'course' => $arrCourse));
 }