function logicalPath($absolutePath)
    {
        foreach ($this->loadPaths->paths() as $lp) {
            $absoluteLoadPath = realpath($lp);

            if (strpos($absolutePath, $absoluteLoadPath) === 0) {
                return ltrim(substr($absolutePath, strlen($absoluteLoadPath)), '/');
            }
        }
    }
function logicalPath($absolutePath)
    {
        foreach ($this->loadPaths->paths() as $lp) {
            $absoluteLoadPath = realpath($lp);

            if (strpos($absolutePath, $absoluteLoadPath) === 0) {
                return ltrim(substr($absolutePath, strlen($absoluteLoadPath)), '/');
            }
        }
    }
function logicalPath ( $ absolutePath ) { foreach ( $ this -> loadPaths -> paths ( ) as $ lp ) { $ absoluteLoadPath = realpath ( $ lp ) ; if ( strpos ( $ absolutePath , $ absoluteLoadPath ) === 0 ) { return ltrim ( substr ( $ absolutePath , strlen ( $ absoluteLoadPath ) ) , '/' ) ; } } }
Calculates the logical path for the given absolute path

@param string $absolutePath
@return string
Calculates the logical path for the given absolute path