Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * 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);
 }