Added php info route
This commit is contained in:
parent
d241420287
commit
8e5fb1157a
10
index.php
10
index.php
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function navi() {
|
function navi() {
|
||||||
echo <<<EOD
|
echo <<<EOD
|
||||||
Navigation:
|
Navigation:
|
||||||
|
@ -11,6 +12,7 @@ function navi() {
|
||||||
<li><a href="/contact-form">contact form</a></li>
|
<li><a href="/contact-form">contact form</a></li>
|
||||||
<li><a href="/get-post-sample">get+post example</a></li>
|
<li><a href="/get-post-sample">get+post example</a></li>
|
||||||
<li><a href="/test.html">test.html</a></li>
|
<li><a href="/test.html">test.html</a></li>
|
||||||
|
<li><a href="/phpinfo">PHP Info</a></li>
|
||||||
<li><a href="/aTrailingSlashDoesNotMatter">aTrailingSlashDoesNotMatter</a></li>
|
<li><a href="/aTrailingSlashDoesNotMatter">aTrailingSlashDoesNotMatter</a></li>
|
||||||
<li><a href="/aTrailingSlashDoesNotMatter/">aTrailingSlashDoesNotMatter/</a></li>
|
<li><a href="/aTrailingSlashDoesNotMatter/">aTrailingSlashDoesNotMatter/</a></li>
|
||||||
<li><a href="/theCaseDoesNotMatter">theCaseDoesNotMatter</a></li>
|
<li><a href="/theCaseDoesNotMatter">theCaseDoesNotMatter</a></li>
|
||||||
|
@ -43,6 +45,14 @@ Route::add('/test.html', function() {
|
||||||
echo 'Hello from test.html';
|
echo 'Hello from test.html';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// This route is for debugging only
|
||||||
|
// It simply prints out some php infos
|
||||||
|
// Do not use this route on production systems!
|
||||||
|
Route::add('/phpinfo', function() {
|
||||||
|
navi();
|
||||||
|
phpinfo();
|
||||||
|
});
|
||||||
|
|
||||||
// Post route example
|
// Post route example
|
||||||
Route::add('/contact-form', function() {
|
Route::add('/contact-form', function() {
|
||||||
navi();
|
navi();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user