Ejemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     // resolve some local paths
     $this->_path_root = Server::getDocRoot();
     $this->_path_script = Server::getScriptPath();
     $this->_path_base = $this->_path_script . '/areas';
     // resolve request method verb
     $method = Utils::getValue(@$_SERVER['REQUEST_METHOD'], 'GET');
     $method = Utils::getValue(@$_SERVER['HTTP_X_HTTP_METHOD'], $method);
     $this->_method = strtolower(trim($method));
 }