I am using CLinkPager and CPagination classes for pagination.
I am providing input fields to user, on the basis of them user can filter the result list.
My searching is working fine but when i used pagination links to go on next page i am not getting the searching results. I know that pagination links are not getting my searching parameters, for that i have to Override createPageUrl() method of CPagination class but i am not able to do it.
Any one can tell me how to Override this method and what should be the code for that method?
Please help me on this issue.
class PaginationEx extends CPagination
public function createPageUrl($controller,$page)
$params=$this->params===null ? $_GET : $this->params;
if($page>0) // page 0 is the default
if( isset( $_POST['dt1'] ) && !empty( $_POST['dt1']))
if( isset( $_POST['dt2'] ) && !empty( $_POST['dt2']))
but you could use Yii:app()->session to store CDbCriteria from model and use it in controller before call search
[color="#006400"]NOTE: moved to proper section (General Discussion for Yii 1.1.x instead of Tips, Snippets and Tutorials)[/color]