[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?