Hy,
is use this code:
if($this->_criteria) {
$this->_criteria->addColumnCondition(array('elfogadva' => 1));
$this->_criteria->addColumnCondition(array('kiemelt' => 0));
$count = Hirdetes::model()->count($this->_criteria);
$pages=new CPagination($count);
$pages->pageSize=1;
$pages->applyLimit($this->_criteria);
$model = Hirdetes::model()->findAll($this->_criteria);
$this->render('talalat',array(
'model'=>$model,
'pages'=>$pages
));
}
If i render the first page, work it correct, but if is click the next page, all variable reset. How to correct this?