Sorry , my english is :)) . In my view is CGridView widget :

$this->widget(‘zii.widgets.grid.CGridView’, array(

'dataProvider'=>  Uzytkownik::model()->search(),

















                  'label' => 'Current',

                  'url'=>'$this->grid->controller->createUrl("Active", array("id"=>$data->primaryKey))',


and im call method "Active" (button current) in controller and in example CgridView page=2. When return from controller CGridView is set only first page . What change this (in controller) when CGridview page=2 and return from controller to page=2 (not default 1 ) etc?.

no need to Call "Active" button in CGridView but you will need to define pageSize in pagination array in search function in model like this

public function search()


$criteria=new CDbCriteria;



return new CActiveDataProvider(get_class($this), array(







You don’t understand me . It isn’t pagesize but currentpage (in CGridView) . In example when i’m on last page CgridView :

CGridView -----> controller/action ------> CGridView

(lastpage) {firstpage )

                                            <-- CGridView set only firstpage not lastpage  

Its the same when i’m on 2,3,4 … page CGridView , when back from controller - CGridView is set default currentPage = 1


please follow this instruction in CGridView