From 915f5ed8ee51a00de452114e1466bd89f7ee799c Mon Sep 17 00:00:00 2001 From: Alexis Date: Sun, 29 Jan 2023 15:44:51 +0100 Subject: [PATCH] Add FrontController --- Source/Controller/FrontController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Controller/FrontController.php b/Source/Controller/FrontController.php index fe53eae..69af20e 100644 --- a/Source/Controller/FrontController.php +++ b/Source/Controller/FrontController.php @@ -2,6 +2,9 @@ namespace FORM_Controller; +use Exception; +use PDOException; + class FrontController { function __construct() @@ -15,7 +18,7 @@ class FrontController try { /* Si l'action est NULL on appelle goToTestimony(), sinon on nettoie l'action */ - $action = $_REQUEST['action'] ? $action = $_REQUEST['action'] : (new ControllerVisitor)->goToTestimony(); + $action = $_REQUEST['action'] ? $action = $_REQUEST['action'] : (new ControllerCandidate)->goToForm(); foreach ($listControllers as $controller) // Pour chaque Controller {