public function gamesAction() { $group_id = $this->_request->getParam('g'); $target_id = $this->_request->getParam('t'); $level_id = $this->_request->getParam('l'); if ($group_id && $target_id && $level_id) { $game_DB = new Application_Model_DbTable_Game(); $games = $game_DB->getAll($target_id, $level_id); $this->view->group_id = $group_id; $this->view->games = $games; } }
public function gamesAction() { $group_id = $this->_request->getParam('g'); $target_id = $this->_request->getParam('t'); if ($group_id && $target_id) { $game_DB = new Application_Model_DbTable_Game(); $games = $game_DB->getAll($_SESSION['Default']['field'], $target_id); if ($games) { $this->view->games = $games; } $this->view->group_id = $group_id; $groups_DB = new Application_Model_DbTable_Group(); $this->view->groupName = $groups_DB->getName($group_id); } }
public function gamesAction() { $goalID = $this->_request->getParam('g'); $games_DB = new Application_Model_DbTable_Game(); $this->view->games = $games_DB->getAll($_SESSION['Default']['field'], $goalID); $this->view->goalID = $goalID; }