Exemplo n.º 1
0
 /**
  * list action for account controller
  *
  */
 public function listAction()
 {
     try {
         $mdlAccount = new Acl_Model_Account();
         $adapter = $mdlAccount->getPaginatorAdapterList();
         $paginator = new Zend_Paginator($adapter);
         $paginator->setItemCountPerPage(10);
         $pageNumber = $this->getRequest()->getParam('page', 1);
         $paginator->setCurrentPageNumber($pageNumber);
         $this->view->accounts = $paginator;
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     return;
 }