/** * Display manufacturers list */ public function actionIndex() { $model = new StoreManufacturer('search'); if (!empty($_GET['StoreManufacturer'])) { $model->attributes = $_GET['StoreManufacturer']; } $dataProvider = $model->orderByName()->search(); $dataProvider->pagination->pageSize = Yii::app()->settings->get('core', 'productsPerPageAdmin'); $this->render('index', array('model' => $model, 'dataProvider' => $dataProvider)); }