public function indexAction() { $table = new Application_Model_DbTable_Zdjecia(); $zdjecia = $table->getAllForAdmin(); $zdjecia->setCurrentPageNumber($this->_getParam('page', 1)); $zdjecia->setItemCountPerPage(50); $this->view->zdjecia = $zdjecia; $options = $this->getInvokeArg('bootstrap')->getOption('zdjecie'); $this->view->path = $options['dir']; }