/**
  * Lists all models.
  */
 public function actionIndex()
 {
     $model = new Wagetype('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Wagetype'])) {
         $model->attributes = $_GET['Wagetype'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model));
 }