|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\controleur;
|
|
|
|
namespace App\controleur;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use App\config\Validation;
|
|
|
|
use App\gateway\Connection;
|
|
|
|
use App\gateway\Connection;
|
|
|
|
use App\gateway\ImageGateway;
|
|
|
|
use App\gateway\ImageGateway;
|
|
|
|
use App\gateway\OffreGateway;
|
|
|
|
use App\gateway\OffreGateway;
|
|
|
@ -64,6 +65,9 @@ class UtilisateurControleur
|
|
|
|
case "avoirDetailEvenement":
|
|
|
|
case "avoirDetailEvenement":
|
|
|
|
$this->avoirDetailEvenement();
|
|
|
|
$this->avoirDetailEvenement();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "rechercherEvenement":
|
|
|
|
|
|
|
|
$this->rechercherEvenement();
|
|
|
|
|
|
|
|
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]);
|
|
|
@ -212,4 +216,20 @@ class UtilisateurControleur
|
|
|
|
echo $twig->render('detailEvenement.html', ['evenement' => $evenement]);
|
|
|
|
echo $twig->render('detailEvenement.html', ['evenement' => $evenement]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected function rechercherEvenement()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$mdl = new \App\modele\UtilisateurModele();
|
|
|
|
|
|
|
|
$evenements = $mdl->getEvenement();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($_POST["recherche"]) AND !empty($_POST["recherche"]))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$recherche = \App\config\Validation::nettoyerString($_POST["recherche"]);
|
|
|
|
|
|
|
|
$evenements = $mdl->getEvenementByTitre($recherche);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
global $twig;
|
|
|
|
|
|
|
|
$twig->addExtension(new TwigExtensions());
|
|
|
|
|
|
|
|
echo $twig->render('evenement.html', ['evenements' => $evenements]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|