ZF Dream
Zend_Paginator分页学习心得
实例化一个分页类,$array是从数据表内读数据的类方法:
$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Array($array));
设置当前页码:
$paginator->setCurrentPageNumber($page);
实例化一个分页类,$array是从数据表内读数据的类方法:
$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Array($array));
设置当前页码:
$paginator->setCurrentPageNumber($page);