src/Dev/DebugView.php
public function Breadcrumbs()
    {
        $basePath = str_replace(Director::protocolAndHost(), '', Director::absoluteBaseURL());
        $relPath = parse_url(
            substr($_SERVER['REQUEST_URI'], strlen($basePath), strlen($_SERVER['REQUEST_URI'])),
            PHP_URL_PATH
        );
        $parts = explode('/', $relPath);
        $base = Director::absoluteBaseURL();
        $pathPart = "";
        $pathLinks = array();
        foreach ($parts as $part) {
            if ($part != '') {
                $pathPart .= "$part/";
                $pathLinks[] = "<a href=\"$base$pathPart\">$part</a>";
            }
        }
        return implode('&nbsp;&rarr;&nbsp;', $pathLinks);
    }
public function Breadcrumbs()
    {
        $basePath = str_replace(Director::protocolAndHost(), '', Director::absoluteBaseURL());
        $relPath = parse_url(
            substr($_SERVER['REQUEST_URI'], strlen($basePath), strlen($_SERVER['REQUEST_URI'])),
            PHP_URL_PATH
        );
        $parts = explode('/', $relPath);
        $base = Director::absoluteBaseURL();
        $pathPart = "";
        $pathLinks = array();
        foreach ($parts as $part) {
            if ($part != '') {
                $pathPart .= "$part/";
                $pathLinks[] = "<a href=\"$base$pathPart\">$part</a>";
            }
        }
        return implode('&nbsp;&rarr;&nbsp;', $pathLinks);
    }
public function Breadcrumbs ( ) { $ basePath = str_replace ( Director :: protocolAndHost ( ) , '' , Director :: absoluteBaseURL ( ) ) ; $ relPath = parse_url ( substr ( $ _SERVER [ 'REQUEST_URI' ] , strlen ( $ basePath ) , strlen ( $ _SERVER [ 'REQUEST_URI' ] ) ) , PHP_URL_PATH ) ; $ parts = explode ( '/' , $ relPath ) ; $ base = Director :: absoluteBaseURL ( ) ; $ pathPart = "" ; $ pathLinks = array ( ) ; foreach ( $ parts as $ part ) { if ( $ part != '' ) { $ pathPart .= "$part/" ; $ pathLinks [ ] = "<a href=\"$base$pathPart\">$part</a>" ; } } return implode ( '&nbsp;&rarr;&nbsp;' , $ pathLinks ) ; }
Generate breadcrumb links to the URL path being displayed

@return string
Generate breadcrumb links to the URL path being displayed