Ejemplo n.º 1
0
 public function __construct()
 {
     $this->_base = $_SERVER['DOCUMENT_ROOT'];
     set_error_handler(array($this, 'fail'));
     self::$req = new request();
     try {
         $this->dispatch();
         // dispatch to loaded class->member based on $req
     } catch (Exception $e) {
         throw $e;
         // errors are handled by delegator
     }
 }