/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionOffencesList()
 {
     $model = new OffenceList('searchReport');
     $model->unsetAttributes();
     // clear any default values
     $this->render('offencesList', array('model' => $model));
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new OffenceList('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['OffenceList'])) {
         $model->attributes = $_GET['OffenceList'];
     }
     $this->render('admin', array('model' => $model));
 }