protected function _getRalativePath($path)
    {
        if ($path) {
            $rootPath = str_replace(array('/', '\\'), '/', self::$_config['root']);

            $path = str_replace(array('/', '\\'), '/', $path);
            $path = str_replace($rootPath, '/', $path);
            $path = str_replace('//', '/', $path);
            $path = trim($path, '/');
        }
        return $path;
    }
protected function _getRalativePath($path)
    {
        if ($path) {
            $rootPath = str_replace(array('/', '\\'), '/', self::$_config['root']);

            $path = str_replace(array('/', '\\'), '/', $path);
            $path = str_replace($rootPath, '/', $path);
            $path = str_replace('//', '/', $path);
            $path = trim($path, '/');
        }
        return $path;
    }
protected function _getRalativePath ( $ path ) { if ( $ path ) { $ rootPath = str_replace ( array ( '/' , '\\' ) , '/' , self :: $ _config [ 'root' ] ) ; $ path = str_replace ( array ( '/' , '\\' ) , '/' , $ path ) ; $ path = str_replace ( $ rootPath , '/' , $ path ) ; $ path = str_replace ( '//' , '/' , $ path ) ; $ path = trim ( $ path , '/' ) ; } return $ path ; }
Get relative path from absolute
@param   string $path Absolute filepath
@return  string
Get relative path from absolute