paginator new Zend_Paginator new Zend_Paginator_Adapt er_DbSelect sele

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_DbSelect($select));
$paginator->setCurrentPageNumber(1)
->setItemCountPerPage(1)
->setPageRange(20)
;
$paginator->setDefaultScrollingStyle(
'Sliding');
return $paginator;
--------------------
public function indexAction()
{
$tableMain = new DbTable_Index();
$main = $tableMain->getIndex(); (это функция описанная выше)
$this->view->main = $main;