public function indexAction() { $model = $this->_getModel(); $adapter = new Zend_Paginator_Adapter_DbSelect($model->fetchAllToPaginator()); $paginator = new Zend_Paginator($adapter); $paginator->setCurrentPageNumber('0'); //$paginator->setItemCountPerPage('10'); var_dump(count($paginator)); // $paginator->setCurrentPageNumber('0'); //$this->view->articles = $paginator; }from the reference setItemCountPerPage | Sets the maximum number of items to display on a page (default 10). so I don't see the point :( What's the trouble ? Bye
View this message in context: Zend_Paginator_Adapter_DbSelect Warning: Division by zero
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论