/**
  * Manages all models.
  */
 public function actionIndex()
 {
     $pageSize = Yii::app()->request->getParam('pageSize', Yii::app()->params['pageSize']);
     Yii::app()->user->setState('pageSize', $pageSize);
     $model = new ProductModel('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['ProductModel'])) {
         $model->attributes = $_GET['ProductModel'];
     }
     $this->render('index', array('model' => $model, 'pageSize' => $pageSize));
 }