lib/trails.php
function dispatch($uri) {

    # E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE|E_RECOVERABLE_ERROR = 5888
    $old_handler = set_error_handler(array($this, 'error_handler'), 5888);

    ob_start();
    $level = ob_get_level();

    $this->map_uri_to_response($this->clean_request_uri((string) $uri))->output();

    while (ob_get_level() >= $level) {
      ob_end_flush();
    }

    if (isset($old_handler)) {
      set_error_handler($old_handler);
    }
  }
function dispatch($uri) {

    # E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE|E_RECOVERABLE_ERROR = 5888
    $old_handler = set_error_handler(array($this, 'error_handler'), 5888);

    ob_start();
    $level = ob_get_level();

    $this->map_uri_to_response($this->clean_request_uri((string) $uri))->output();

    while (ob_get_level() >= $level) {
      ob_end_flush();
    }

    if (isset($old_handler)) {
      set_error_handler($old_handler);
    }
  }
function dispatch ( $ uri ) { # E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE|E_RECOVERABLE_ERROR = 5888 $ old_handler = set_error_handler ( array ( $ this , 'error_handler' ) , 5888 ) ; ob_start ( ) ; $ level = ob_get_level ( ) ; $ this -> map_uri_to_response ( $ this -> clean_request_uri ( ( string ) $ uri ) ) -> output ( ) ; while ( ob_get_level ( ) >= $ level ) { ob_end_flush ( ) ; } if ( isset ( $ old_handler ) ) { set_error_handler ( $ old_handler ) ; } }
Maps a string to a response which is then rendered.

@param string The requested URI.

@return void
Maps a string to a response which is then rendered .