mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
5d2720eed7
commit
f5987f7473
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user