Pagekit\Info\InfoHelper::getRelativePath PHP 메소드

getRelativePath() 보호된 메소드

Returns the path relative to the root.
protected getRelativePath ( string $path ) : string
$path string
리턴 string
    protected function getRelativePath($path)
    {
        if (0 === strpos($path, App::path())) {
            $path = ltrim(str_replace('\\', '/', substr($path, strlen(App::path()))), '/');
        }
        return $path;
    }