|
|
@ -58,6 +58,9 @@ class UtilisateurControleur
|
|
|
|
case "creerEvenement":
|
|
|
|
case "creerEvenement":
|
|
|
|
$this->creerEvenement();
|
|
|
|
$this->creerEvenement();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "publierEvenement":
|
|
|
|
|
|
|
|
$this->publierEvenement();
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
$dVueErreur[] ="Action inconnue ou non autorisée";
|
|
|
|
$dVueErreur[] ="Action inconnue ou non autorisée";
|
|
|
|
echo $twig->render("erreur.html",['dVueErreur' => $dVueErreur]);
|
|
|
|
echo $twig->render("erreur.html",['dVueErreur' => $dVueErreur]);
|
|
|
@ -140,7 +143,7 @@ class UtilisateurControleur
|
|
|
|
$offreMdl->publierOffre($img);
|
|
|
|
$offreMdl->publierOffre($img);
|
|
|
|
|
|
|
|
|
|
|
|
global $twig;
|
|
|
|
global $twig;
|
|
|
|
echo $twig->render('Offres.html', [$offreMdl->getOffres()]);
|
|
|
|
echo $twig->render('Offres.html', [$offreMdl->obtenirOffres()]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function testAction()
|
|
|
|
protected function testAction()
|
|
|
@ -165,16 +168,16 @@ class UtilisateurControleur
|
|
|
|
|
|
|
|
|
|
|
|
protected function creerEvenement()
|
|
|
|
protected function creerEvenement()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
global $twig;
|
|
|
|
$Usermdl = new \App\modele\UtilisateurModele();
|
|
|
|
echo $twig->render('creerEvenement.html', []);
|
|
|
|
|
|
|
|
}
|
|
|
|
echo "test";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected function publierEvenement()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
|
|
|
|
|
|
|
|
$Usermdl->ajouterEvenement($img);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
global $twig;
|
|
|
|
global $twig;
|
|
|
|
echo $twig->render('creerOffre.html', []);
|
|
|
|
echo $twig->render('evenement.html', []);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|