protected static function setPath($path = null)
    {
        if (!static::$pathStack) {
            $requestURI = parse_url($_SERVER['REQUEST_URI']);
            static::$pathStack = static::$requestPath = explode('/', ltrim($requestURI['path'], '/'));
        }
    
        static::$_path = isset($path) ? $path : static::$pathStack;
    }
protected static function setPath($path = null)
    {
        if (!static::$pathStack) {
            $requestURI = parse_url($_SERVER['REQUEST_URI']);
            static::$pathStack = static::$requestPath = explode('/', ltrim($requestURI['path'], '/'));
        }
    
        static::$_path = isset($path) ? $path : static::$pathStack;
    }
protected static function setPath ( $ path = null ) { if ( ! static :: $ pathStack ) { $ requestURI = parse_url ( $ _SERVER [ 'REQUEST_URI' ] ) ; static :: $ pathStack = static :: $ requestPath = explode ( '/' , ltrim ( $ requestURI [ 'path' ] , '/' ) ) ; } static :: $ _path = isset ( $ path ) ? $ path : static :: $ pathStack ; }
protected static methods
protected static methods