Add FrontController

AdminInterface
Alexis 2 years ago
parent c38635507f
commit 915f5ed8ee

@ -2,6 +2,9 @@
namespace FORM_Controller; namespace FORM_Controller;
use Exception;
use PDOException;
class FrontController class FrontController
{ {
function __construct() function __construct()
@ -15,7 +18,7 @@ class FrontController
try try
{ {
/* Si l'action est NULL on appelle goToTestimony(), sinon on nettoie l'action */ /* 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 foreach ($listControllers as $controller) // Pour chaque Controller
{ {

Loading…
Cancel
Save