MAPG-3 create basic contoller functionality
This commit is contained in:
1 parent
c63f05295e
commit
555984caf5
5 files changed
+70
-1
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
require '../main.php';
|
||||
|
||||
// very basic routing
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
switch($url) {
|
||||
case '/':
|
||||
$controller = new MapGuesser\Controller\GuessController();
|
||||
break;
|
||||
default:
|
||||
echo 'Error 404';
|
||||
die;
|
||||
}
|
||||
|
||||
echo $controller->render();
|
||||
Reference in new issue
Block a user