How do I save _page number?

Hello,

Do you have to configure the urlManager?

I do not see the _page in the url and do not know how to capture it.

Can someone give me an example?

Thanks

What are you using? CGridView? if yes the just add ‘ajaxUpdate’=>false




<?php $this->widget('zii.widgets.grid.CGridView', array(

	'dataProvider'=>$model->search(),

	'filter'=>$model,

        'ajaxUpdate'=>false,

	'columns'=>array(

               ...

        ),



Thank you so much,

I have it working now.

Just curious, is there any way to grab the page number if ajax is used?

You can use ?page=2 after the url to go to that page, see

http://www.eha.ee/labs/yiiplay/index.php/en/person/admin?page=2

You can also capture that url parameter in your controller where the cgridview is generated

Thanks for the link.

Just what I was looking for.