private function display_adventure() { global $rep, $views; $adventureId = isset($_GET['id_adventure']) ? $_GET['id_adventure'] : ''; $adventure = Model_adventure::getAdventureById($adventureId); require $rep . $views["adventure"]; }
private function display_adventure($id) { global $rep, $views; $adventure = Model_adventure::getAdventureById($id); require $rep . $views["adventure"]; }