main
Thomas Chazot 2 years ago
parent 4294cab5e6
commit ed9e510a2b

@ -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();
}

@ -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';

@ -10,5 +10,6 @@ Autoload::charger();
// Construction du controleur
//$cont=new FrontControleur();
$_REQUEST['action']=NULL;
$cont= new FrontController();
?>

Loading…
Cancel
Save