src/Dev/DebugView.php
public function renderHeader($httpRequest = null)
    {
        $url = htmlentities(
            $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
            ENT_COMPAT,
            'UTF-8'
        );

        $debugCSS = ModuleResourceLoader::singleton()
            ->resolveURL('silverstripe/framework:client/styles/debug.css');
        $output = '<!DOCTYPE html><html><head><title>' . $url . '</title>';
        $output .= '<link rel="stylesheet" type="text/css" href="' . $debugCSS . '" />';
        $output .= '</head>';
        $output .= '<body>';

        return $output;
    }
public function renderHeader($httpRequest = null)
    {
        $url = htmlentities(
            $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'],
            ENT_COMPAT,
            'UTF-8'
        );

        $debugCSS = ModuleResourceLoader::singleton()
            ->resolveURL('silverstripe/framework:client/styles/debug.css');
        $output = '<!DOCTYPE html><html><head><title>' . $url . '</title>';
        $output .= '<link rel="stylesheet" type="text/css" href="' . $debugCSS . '" />';
        $output .= '</head>';
        $output .= '<body>';

        return $output;
    }
public function renderHeader ( $ httpRequest = null ) { $ url = htmlentities ( $ _SERVER [ 'REQUEST_METHOD' ] . ' ' . $ _SERVER [ 'REQUEST_URI' ] , ENT_COMPAT , 'UTF-8' ) ; $ debugCSS = ModuleResourceLoader :: singleton ( ) -> resolveURL ( 'silverstripe/framework:client/styles/debug.css' ) ; $ output = '<!DOCTYPE html><html><head><title>' . $ url . '</title>' ; $ output .= '<link rel="stylesheet" type="text/css" href="' . $ debugCSS . '" />' ; $ output .= '</head>' ; $ output .= '<body>' ; return $ output ; }
Render HTML header for development views

@param HTTPRequest $httpRequest
@return string
Render HTML header for development views