|
|
@ -129,11 +129,10 @@ class UtilisateurControleur
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isset($_FILES['image'])) {
|
|
|
|
if (isset($_FILES['image'])) {
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
$offreMdl = new OffreModele();
|
|
|
|
$offerMdl = new OffreModele();
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
$offre = $offreMdl->publishOffers($img);
|
|
|
|
$offer = $offerMdl->publishOffers($img);
|
|
|
|
$id = $offre->getImgId();
|
|
|
|
$id = $offer->getImgId();
|
|
|
|
|
|
|
|
|
|
|
|
//echo $twig->render("index.php?action=displayOffer&id=${id}",[]);
|
|
|
|
//echo $twig->render("index.php?action=displayOffer&id=${id}",[]);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|