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