From c40341a3e11b94d03fe39ec85666994d9f89698b Mon Sep 17 00:00:00 2001 From: "victor.soulier" Date: Sat, 18 Nov 2023 15:00:26 +0100 Subject: [PATCH] =?UTF-8?q?FIX=20:=20utilisation=20des=20mod=C3=A8les=20po?= =?UTF-8?q?ur=20la=20creation=20des=20parties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/src/controller/FrontController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/src/controller/FrontController.php b/project/src/controller/FrontController.php index 538f07e..199a815 100644 --- a/project/src/controller/FrontController.php +++ b/project/src/controller/FrontController.php @@ -107,8 +107,8 @@ class FrontController public function CreateParty() : void { global $twig; - $listJeu = (new \model\JeuGateway($this->con))->getAll(); - $listDifficulte = (new \model\DifficulteGateway($this->con))->getAll(); + $listJeu = (new \model\MdlJeu())->getAll(); + $listDifficulte = (new \model\MdlDifficulte())->getAll(); $dVueCreateJeu = []; foreach($listJeu as $jeu){ @@ -131,8 +131,8 @@ class FrontController $id_difficulte = $_POST['difficulte'] ?? ''; \config\Validation::val_form($id_jeu, $id_difficulte, $dVueErreur); - $dVue['nomJeu'] = (new \model\JeuGateway($this->con))->getFromId($id_jeu)->getNom(); - $dVue['libelleDifficulte'] = (new \model\DifficulteGateway($this->con))->getFromId($id_difficulte)->getLibelle(); + $dVue['nomJeu'] = (new \model\MdlJeu())->getFromId($id_jeu)->getNom(); + $dVue['libelleDifficulte'] = (new \model\MdlDifficulte())->getFromId($id_difficulte)->getLibelle(); echo $twig->render('accueil.html', ['dVue' => $dVue, 'dVueErreur' => $dVueErreur]); }