public function reportAction() { $groupID = $this->_request->getParam('g'); $_SESSION['Default']['report'] = true; $group_DB = new Application_Model_DbTable_Group(); $groupName = $group_DB->getName($groupID); $this->view->group_name = $groupName; $plans_DB = new Application_Model_DbTable_Planing(); $plans = $plans_DB->getByGroupReverse($groupID, $_SESSION['Default']['field']); $this->view->plans = $plans; }