diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 7c7df588..9c7af38a 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -452,12 +452,11 @@ class ReviewController extends Zend_Controller_Action }//reviewAction() function allreviewAction(){ + $this->_helper->layout->disableLayout(); + $this->_helper->viewRenderer->setNoRender(); - $page = $this->_getParam('page'); $uuid = $this->_request->getParam('uuid'); - $offset = 5; - $sql = "select r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion from mdreview r left join users u on u.id=r.userid where r.uuid='$uuid'"; @@ -467,12 +466,12 @@ class ReviewController extends Zend_Controller_Action $paginator = Zend_Paginator::factory($rows); $paginator->setCurrentPageNumber($this->_getParam('page')); - //$paginator->setItemCountPerPage(5); - //$paginator->setView($this->view); + $paginator->setItemCountPerPage(5); + $paginator->setView($this->view); Zend_View_Helper_PaginationControl::setDefaultViewPartial('review/pagination_ajax.phtml'); $list = ""; - foreach($rows as $k=>$v) + foreach($paginator as $k=>$v) { $list.='