/**
  * Renders the pager.
  */
 public function renderPager()
 {
     parent::renderPager();
     $pager = $this->dataProvider->getPagination();
     if ($pager && $pager->getPageCount() > 1) {
         echo CHtml::link('Развернуть', Yii::app()->createUrl('/catalog/catalog/show', array('id' => $this->modelId, 'group_id' => $this->activeGroupId, 'showAll' => true)), array('class' => 'close filter'));
     } elseif (!$pager) {
         echo CHtml::link('Свернуть', Yii::app()->createUrl('/catalog/catalog/show', array('id' => $this->modelId, 'group_id' => $this->activeGroupId)), array('class' => 'close filter'));
     }
 }
Exemple #2
0
 public function renderPager()
 {
     parent::renderPager();
     MyYii::registerCss('/css/mygrid.css');
 }