Pagination Urls

Hi all,

Is there a way of controlling the URLs that are generated on a CGridView pagination? Something like


but still have the correct GET values.

Many thanks


Hi Yogi

pagination of CGridView widget has own url to manage (with ajax request) the previous and next pages of rendered list. I can’t thinκ any sence to change that.

what exactly do you want to do?

why on the earth you wanna do that?

Thanks for your reply.

The problem I am having is the pagination links don’t work, they link to the base URL. The project is large, has many developers and I don’t have access/permission to change already complete code without being confident of the issue. I have been unable to trace what is causing the problem and have already spent a day trying.

Everything else I have created has worked exactly as I expected however on these particular views I need to add theme/ for example for the buttons on the CGridView



  'view' => array


    'url'=>'Yii::app()->createUrl("theme/view", array("id"=>$data->id))',


  'update' => array


      'url'=>'Yii::app()->createUrl("theme/update", array("id"=>$data->id))',


  'delete' => array


      'url'=>'Yii::app()->createUrl("theme/delete", array("id"=>$data->id))',



I know I am asking for a ‘hacky’ solution, for the time being I have just disabled pagination and displayed all records. The only thing I can think the issue could be is the themeController is being imported and set up in a beforeAction() that my controller extends.

Thanks for your help.

post your rest of the code