like2dev
(Like2dev)
1
How i can remove Go To Page , and rename button ‘next’ e.t.c
Screen : http://s42.radikal.ru/i096/1004/d1/66a293806ea2.jpg
code:
$dataProvider=new CActiveDataProvider('Hosting', array(
'criteria'=>$criteria,
'pagination'=>array(
'pageSize'=>'5',
),
));
mdomba
(Maurizio Domba Cerin)
2
You cannot set it in the CActiveDataProvider, but can for example in the CGridView
for example:
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'pager'=>array(
'class'=>'CLinkPager',
'header'=>'Idi na->',
)
));
For all possible labels (attributes) take a look at the CLinkPager class: http://www.yiiframework.com/doc/api/CLinkPager
Kailas
(Kailas Bedarkar)
3
cgrid view pager save the filter on goto next page?