예제 #1
0
 /**
  * Display statuses list
  */
 public function actionIndex()
 {
     $model = new OrderStatus('search');
     $model->unsetAttributes();
     if (!empty($_GET['OrderStatus'])) {
         $model->attributes = $_GET['OrderStatus'];
     }
     $dataProvider = $model->search();
     $dataProvider->pagination->pageSize = Yii::app()->settings->get('core', 'productsPerPageAdmin');
     $this->render('index', array('model' => $model, 'dataProvider' => $dataProvider));
 }
예제 #2
0
 /**
  * Display statuses list
  */
 public function actionIndex()
 {
     $this->pageName = Yii::t('CartModule.admin', 'STATUSES');
     $this->breadcrumbs = array($this->pageName);
     $model = new OrderStatus('search');
     $model->unsetAttributes();
     if (!empty($_GET['OrderStatus'])) {
         $model->attributes = $_GET['OrderStatus'];
     }
     $dataProvider = $model->search();
     $this->render('index', array('model' => $model, 'dataProvider' => $dataProvider));
 }