adding debug header and footer to default development view

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55825 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mark Rickerby 2008-06-06 06:34:06 +00:00
parent 5d2720eed7
commit f5987f7473

View File

@ -14,14 +14,19 @@ class DevelopmentAdmin extends Controller {
);
function index() {
return <<<HTML
<h1>sapphire development tools</h1>
$renderer = new DebugView();
$renderer->writeHeader();
echo <<<HTML
<div class="info"><h1>Sapphire Development Tools</h1></div>
<div class="options">
<ul>
<li><a href="dev/tests">/dev/tests: Run all unit tests</a></li>
<li><a href="dev/tasks">/dev/tasks: See a list of build tasks to run</a></li>
<li><a href="tests">/dev/tests: See a list of unit tests to run</a></li>
<li><a href="tasks">/dev/tasks: See a list of build tasks to run</a></li>
<li><a href="db/build?flush=1">/db/build?flush=1: Rebuild the database</a></li>
</ul>
</div>
HTML;
$renderer->writeFooter();
}
function tests() {