/** * IndexAction for Permissions * * @return void */ function indexAction() { //get the page of the table $page = $this->_getParam('page', 1); //get the dates for the table $model = new Finances_Model_Resource_activity_has_receipt(); $data = $model->fetchEntries(); //paginator if ($data) { $paginator = Zend_Paginator::factory($data); $finances = Zend_Registry::get('finances'); $paginator->setItemCountPerPage($finances->paginator); $paginator->setCurrentPageNumber($page); $paginator->setPageRange($finances->paginator); $this->view->paginator = $paginator; } else { $this->view->paginator = null; } //send information to the view $this->view->title = "Resource_activity_has_receipts list"; }