|
|
@ -167,21 +167,12 @@ class UtilisateurControleur
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(isset($_FILES["image"]))
|
|
|
|
if(isset($_FILES["image"]))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
echo 'test';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
$imgMdl = new ImageModele;
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
$img = $imgMdl->publierImage();
|
|
|
|
|
|
|
|
|
|
|
|
echo 'Image créé avec succès !';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$mdl = new \App\modele\UtilisateurModele();
|
|
|
|
$mdl = new \App\modele\UtilisateurModele();
|
|
|
|
|
|
|
|
|
|
|
|
echo 'testEvent';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$mdl->ajouterEvenement($img);
|
|
|
|
$mdl->ajouterEvenement($img);
|
|
|
|
|
|
|
|
|
|
|
|
echo 'Evenement créé avec succès !';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
global $twig;
|
|
|
|
global $twig;
|
|
|
|
$twig->addExtension(new TwigExtensions());
|
|
|
|
$twig->addExtension(new TwigExtensions());
|
|
|
|
$evenements = $mdl->getEvenement();
|
|
|
|
$evenements = $mdl->getEvenement();
|
|
|
|