name."_".$page[0].'.html')) { $this->template = $this->name."_".$page[0]; } else { // Fail if there is not page to be loaded header("HTTP/1.0 404 Not Found"); exit; } parent::__construct($page); } public function setNavigation() { } public function getUserById() { $id = ""; if (isset($this->page[1])) $id = $this->page[1]; return new User($id); } }