예제 #1
0
 /**
  * Display attribute list
  */
 public function actionIndex()
 {
     $model = new StoreAttribute('search');
     // By default position is 0, we set it to null to display all results
     $model->position = null;
     if (!empty($_GET['StoreAttribute'])) {
         $model->attributes = $_GET['StoreAttribute'];
     }
     $dataProvider = $model->search();
     $dataProvider->pagination->pageSize = Yii::app()->settings->get('core', 'productsPerPageAdmin');
     $this->render('index', array('model' => $model, 'dataProvider' => $dataProvider));
 }