function __construct() { $http_get = new HttpGet(); $this->raw = preg_replace('/(\\.(html|php)$)|(\\/$)/', '', $http_get->getOrElse("route", self::DEFAULT_ROUTE)); $route_array = explode("/", $this->raw); error_log(sprintf("::: %s :::", $this->raw)); end($route_array); $key = key($route_array); $route_array[$key] = "Do" . ucfirst($route_array[$key]); reset($route_array); $this->route = Tools::turnSlashes(FIXED_ROUTES_PATH . implode('/', $route_array)); $this->default_handler = Option::None(); }