public function addtogroupAction() { $user = Zend_Auth::getInstance()->getStorage()->read(); $ganID = $user->ganID; $groupID = $this->_request->getParam('g'); $student_DB = new Application_Model_DbTable_StudentsInField(); $students = $student_DB->getAllGroupless($ganID, $_SESSION['Default']['field']); $this->view->students = $students; $this->view->groupID = $groupID; $groups_DB = new Application_Model_DbTable_Group(); $this->view->groupName = $groups_DB->getName($groupID); }