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 {