CPagination params

[Solved] - no need to read… carry on.

OK I’m probably missing something really simple… but when I try the following:




$pages=new CPagination($count);

$pages->pageSize=Yii::app()->params['recordsPerPage'];

$pages->applyLimit($criteria);

$pages->params(array(

	'startDate'=>$search->dateFrom,

	'endDate'=>$search->dateTo,

	'searchType'=>$search->searchType,

));



I get the following error:

I looked up the class CPagination and the documentation and I see a “public $params;” variable… so I’m not sure why I’m getting this error. Anyone know?

OK I caught it… missed an equals sign… doh!

CPagination::params is a property, not a method.

/Tommy