cscg25 continues
This commit is contained in:
20
cscg25/web/canteenfood/challenge/index.php
Normal file
20
cscg25/web/canteenfood/challenge/index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
$_SESSION["admin"] = false;
|
||||
|
||||
include_once "controllers/AdminController.php";
|
||||
include_once "controllers/CanteenController.php";
|
||||
include_once "models/AdminModel.php";
|
||||
include_once "models/CanteenModel.php";
|
||||
include_once "Routing.php";
|
||||
include_once "Database.php";
|
||||
|
||||
$router = new Routing();
|
||||
$router->new('GET', '/', 'CanteenController@index');
|
||||
$router->new('GET', '/admin', 'AdminController@admin');
|
||||
|
||||
$response = $router->match();
|
||||
|
||||
die($response);
|
||||
Reference in New Issue
Block a user