Zend Pagination with array

三世轮回 提交于 2019-12-06 02:23:05

As Zak wrote, you are missing

$paginator->setItemCountPerPage(10);
$paginator->setCurrentPageNumber(1);

that you can create a view script to render the paginator controls and the items in the paginator.

Than you have to call

$paginator->getPages()->pageCount

if you are not using Zend_View and it's paginatorControl view helper.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!