From 3a0757032e5a8c2c7edb78a1b03129df16a8f75d Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Sat, 28 Oct 2023 23:04:17 +0200 Subject: [PATCH] Restructuration du index.php pour charger Twig et lancer le front controller --- project/src/index.php | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/project/src/index.php b/project/src/index.php index ffdc1c6..8bfc0b7 100644 --- a/project/src/index.php +++ b/project/src/index.php @@ -1,11 +1,20 @@ - + -test - false, + ]); + + $cont = new FrontController(); + + +/* try{ $con=new model\Connection($dsn,$login,$mdp); @@ -23,7 +32,4 @@ try{ catch( PDOException $Exception ) { echo 'erreur'; echo $Exception->getMessage();} -?> - - - \ No newline at end of file +*/ \ No newline at end of file