Yii Framework Forum: Custom Pager Class In Cbaselistview - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Custom Pager Class In Cbaselistview Rate Topic: -----

#1 User is offline   Speeedfire 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 192
  • Joined: 02-March 12

Posted 04 December 2012 - 11:37 AM

My CBaseListView:

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'template'=>'{items}<div class="lapozo">{pager}</div>',
        'emptyText'=>'Nincs eredmény.',
        'pager'=>array(
            'cssFile'=>Yii::app()->baseUrl.'/css/pager.css'
        )
)); ?>


How to integrate this code to CBaseListView code?
<?php $this->widget('MyCLinkPager', array(
    'pages' => $pages,
    'cssFile'=>Yii::app()->baseUrl.'/css/pager.css'
)) ?> 


I wanna use, my pager class.


Edit:
Solved!

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'template'=>'{items}<div class="lapozo">{pager}</div>',
        'emptyText'=>'Nincs eredmény.',
        'pager'=>array(
            'cssFile'=>Yii::app()->baseUrl.'/css/pager.css',
            'class'=>'MyCLinkPager' //this line solved my probleme :)
        )
)); ?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users