addCondition('semester_id="'.$semeseter_id.'"'); //$total = $this->count($criteria); //$pager = new CPagination($total); $criteria->order = 'id desc'; $criteria->limit = 20; return $this->findAll($criteria); /* $pager->pageSize = 20; $pager->applyLimit($criteria); $data['result']=$this->findAll($criteria); $data['page']=$pager; $data['page_total']= $total; return $data; */ } }