test action displayOffer

offres2
Baltazouu 1 year ago committed by Baptiste D
parent 4bbdc49669
commit b27f5f5e98

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

Loading…
Cancel
Save