public function librarylistAction() { if (Zend_Auth::getInstance()->hasIdentity()) { $id = $this->_getParam('iLibCategoryId'); $eventsList = new Model_Document(); $this->view->list = $eventsList->getDocListByCat($id); } }