classes/Request.php
public static function URI(){
    switch(true){
      case !empty($_SERVER['REQUEST_URI']):    $serv_uri = $_SERVER['REQUEST_URI']; break;
      case !empty($_SERVER['ORIG_PATH_INFO']): $serv_uri = $_SERVER['ORIG_PATH_INFO']; break;
      case !empty($_SERVER['PATH_INFO']):      $serv_uri = $_SERVER['PATH_INFO']; break;
      default:                                 $serv_uri = '/'; break;
    }
    $uri = rtrim(strtok($serv_uri,'?'),'/') ?: '/';
    return Filter::with('core.request.URI', $uri) ?: '/';
  }
public static function URI(){
    switch(true){
      case !empty($_SERVER['REQUEST_URI']):    $serv_uri = $_SERVER['REQUEST_URI']; break;
      case !empty($_SERVER['ORIG_PATH_INFO']): $serv_uri = $_SERVER['ORIG_PATH_INFO']; break;
      case !empty($_SERVER['PATH_INFO']):      $serv_uri = $_SERVER['PATH_INFO']; break;
      default:                                 $serv_uri = '/'; break;
    }
    $uri = rtrim(strtok($serv_uri,'?'),'/') ?: '/';
    return Filter::with('core.request.URI', $uri) ?: '/';
  }
public static function URI ( ) { switch ( true ) { case ! empty ( $ _SERVER [ 'REQUEST_URI' ] ) : $ serv_uri = $ _SERVER [ 'REQUEST_URI' ] ; break ; case ! empty ( $ _SERVER [ 'ORIG_PATH_INFO' ] ) : $ serv_uri = $ _SERVER [ 'ORIG_PATH_INFO' ] ; break ; case ! empty ( $ _SERVER [ 'PATH_INFO' ] ) : $ serv_uri = $ _SERVER [ 'PATH_INFO' ] ; break ; default : $ serv_uri = '/' ; break ; } $ uri = rtrim ( strtok ( $ serv_uri , '?' ) , '/' ) ? : '/' ; return Filter :: with ( 'core.request.URI' , $ uri ) ? : '/' ; }
Returns the current request URI.

@return string
Returns the current request URI .