$part→ ";
}
}
return $path;
}
/**
* Render HTML header for development views
*/
public function writeHeader() {
echo '
'. $_SERVER['REQUEST_METHOD'] . ' ' .$_SERVER['REQUEST_URI'] .'';
echo '';
echo '';
echo '';
}
/**
* Render the information header for the view
*
* @param string $title
* @param string $title
*/
public function writeInfo($title, $subtitle, $description=false) {
echo '';
echo "
$title
";
echo "
$subtitle
";
if ($description) {
echo "
$description
";
} else {
echo $this->Breadcrumbs();
}
echo '
';
}
/**
* Render HTML footer for development views
*/
public function writeFooter() {
echo "";
}
/**
* Write information about the error to the screen
*/
public function writeError($httpRequest, $errno, $errstr, $errfile, $errline, $errcontext) {
echo '';
echo "
" . strip_tags($errstr) . "
";
echo "
$httpRequest
";
echo "
Line $errline in $errfile
";
echo '
';
}
/**
* Write a fragment of the a source file
* @param $lines An array of file lines; the keys should be the original line numbers
*/
function writeSourceFragment($lines, $errline) {
echo 'Source
';
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 '
Trace
';
Debug::backtrace();
echo '
';
}
}
?>