/** * Constructor */ public function __construct() { $this->_request = new Request(); $this->_response = new Response(); $this->_method = Connection::getMethod(); $this->setBasePath(dirname(@$_SERVER["DOCUMENT_ROOT"]) . "/areas"); $this->setPublicPath(@$_SERVER["DOCUMENT_ROOT"]); $this->setRoute(Connection::getPath()); }
/** * Get current script/route url */ public static function getRouteUrl($append = null) { $path = str_replace(self::getBasePath(), "", Connection::getPath()); $append = self::_append($append); return self::getScriptUrl($path . $append); }