array( 'title' => 'User Error', 'class' => 'error' ), E_CORE_ERROR => array( 'title' => 'Core Error', 'class' => 'error' ), E_NOTICE => array( 'title' => 'Notice', 'class' => 'notice' ), E_CORE_ERROR => array( 'title' => 'Core Error', 'class' => 'error' ), E_WARNING => array( 'title' => 'Warning', 'class' => 'warning' ), E_CORE_WARNING => array( 'title' => 'Core Warning', 'class' => 'warning' ), E_USER_WARNING => array( 'title' => 'Warning', 'class' => 'warning' ) ); /** * Generate breadcrumb links to the URL path being displayed * * @return string */ public function Breadcrumbs() { $basePath = str_replace(Director::protocolAndHost(), '', Director::absoluteBaseURL()); $parts = explode('/', str_replace($basePath, '', $_SERVER['REQUEST_URI'])); $base = Director::absoluteBaseURL(); $path = ""; $pathPart = ""; foreach($parts as $part) { if ($part != '') { $pathPart .= "$part/"; $path .= "$part→ "; } } return $path; } /** * Render HTML header for development views */ public function writeHeader() { echo '
$description
"; } else { echo $this->Breadcrumbs(); } echo 'Line $errline in $errfile
"; echo ''; foreach($lines as $offset => $line) { $line = htmlentities($line); if ($offset == $errline) { echo "$offset $line"; } else { echo "$offset $line"; } } echo ''; } /** * Write a backtrace */ function writeTrace() { echo '
' . $text . '
'; } } ?>