From 380b0c6c7842d7016e2abbd15e61b835f62ca43b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Apr 2021 13:55:39 +0300 Subject: Implemented base controller --- src/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/index.php') diff --git a/src/index.php b/src/index.php index 26089e9..70da9a1 100644 --- a/src/index.php +++ b/src/index.php @@ -7,14 +7,12 @@ include_once("controllers/LandingController.php"); * Thanks https://www.taniarascia.com/the-simplest-php-router/ */ -$landingController = new LandingController(); - $request = $_SERVER['REQUEST_URI']; switch ($request) { case "": case "/": - $landingController->invoke(); + LandingController::invoke(); break; default: http_response_code(404); -- cgit v1.3.1-26-gb76a