public function actionTrainee()
 {
     $countTrainee = WCourseTrainee::model()->findAll();
     $total_pages = ceil(count($countTrainee) / Params::$coursePerPage);
     $model = new WCourseTrainee('search');
     if (isset($_GET['WCourseTrainee'])) {
         $model->setAttributes($_GET['WCourseTrainee']);
     }
     $this->render('trainee', array('total_pages' => $total_pages, 'model' => $model));
 }