From ed9e510a2b6886bbaf4de38abec97209a7968432 Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Fri, 23 Dec 2022 03:02:04 +0100 Subject: [PATCH] mais wtf --- controllers/VisitorController.php | 2 +- gateway/ListeGateway.php | 4 ++-- index.php | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/VisitorController.php b/controllers/VisitorController.php index e69a1c2..894074c 100644 --- a/controllers/VisitorController.php +++ b/controllers/VisitorController.php @@ -42,7 +42,7 @@ class VisitorController { global $rep,$vues,$dataView,$styles; $model = new MdlListe(); $dataView = $model->getPublicList(); - + echo "wtf"; require($rep.$vues['accueil']); $vues_erreur= array(); } diff --git a/gateway/ListeGateway.php b/gateway/ListeGateway.php index 294bcbe..caa9764 100644 --- a/gateway/ListeGateway.php +++ b/gateway/ListeGateway.php @@ -84,7 +84,7 @@ class ListeGateway $this->con->executeQuery($queryTaches, array(':idListe' => array($idListe, PDO::PARAM_INT))); $resultsTaches = $this->con->getResults(); foreach($resultsTaches as $rowTaches){ - if($rowTaches['complete']=="0"){ + if($rowTaches['completed']==="0"){ $taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],false); }else{ $taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],true); @@ -92,8 +92,8 @@ class ListeGateway } $listes[] = new Liste($row['id'], $row['name'],false, null, $taches); $taches = null; - echo json_encode ($listes); } + echo "haaaaaaaaaaaaaaaa"; } catch(PDOException $Exception) { echo 'erreur'; diff --git a/index.php b/index.php index 47ed283..b0d15f7 100644 --- a/index.php +++ b/index.php @@ -10,5 +10,6 @@ Autoload::charger(); // Construction du controleur //$cont=new FrontControleur(); +$_REQUEST['action']=NULL; $cont= new FrontController(); ?>