Пример #1
0
 public function actionIndex()
 {
     $model = new ShopCurrency('search');
     if (!empty($_GET['ShopCurrency'])) {
         $model->attributes = $_GET['ShopCurrency'];
     }
     $dataProvider = $model->search();
     $this->pageName = Yii::t('ShopModule.admin', 'CURRENCY');
     $this->breadcrumbs = array(Yii::t('ShopModule.default', 'MODULE_NAME') => array('/admin/shop'), $this->pageName);
     $this->render('index', array('model' => $model, 'dataProvider' => $dataProvider));
 }