|
|
|
@ -66,18 +66,18 @@ class UtilisateurModele
|
|
|
|
|
$gate = new \App\gateway\EvenementGateway($con);
|
|
|
|
|
$data = $gate->getAllEvenement();
|
|
|
|
|
|
|
|
|
|
$gateAlumni = new \App\gateway\AlumniGateway($con);
|
|
|
|
|
$dataAlumni = $gateAlumni->findById($data[0]['organisateur']);
|
|
|
|
|
// $gateAlumni = new \App\gateway\AlumniGateway($con);
|
|
|
|
|
// $dataAlumni = $gateAlumni->findById($data[0]['organisateur']);
|
|
|
|
|
|
|
|
|
|
$gateImage = new \App\gateway\ImageGateway($con);
|
|
|
|
|
$image = $gateImage->obtenirParId($data[0]['image']);
|
|
|
|
|
|
|
|
|
|
$organisateur = new \App\metier\Alumni(
|
|
|
|
|
$dataAlumni[0]['id'],
|
|
|
|
|
$dataAlumni[0]['mail'],
|
|
|
|
|
$dataAlumni[0]['mdp'],
|
|
|
|
|
$dataAlumni[0]['role']
|
|
|
|
|
);
|
|
|
|
|
// $organisateur = new \App\metier\Alumni(
|
|
|
|
|
// $dataAlumni[0]['id'],
|
|
|
|
|
// $dataAlumni[0]['mail'],
|
|
|
|
|
// $dataAlumni[0]['mdp'],
|
|
|
|
|
// $dataAlumni[0]['role']
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
$img = new \App\metier\Image(
|
|
|
|
|
$image[0]['id'],
|
|
|
|
@ -91,7 +91,7 @@ class UtilisateurModele
|
|
|
|
|
{
|
|
|
|
|
$evenement[] = new \App\metier\Evenement(
|
|
|
|
|
$row['id'],
|
|
|
|
|
$organisateur,
|
|
|
|
|
$row['organisateur'],
|
|
|
|
|
$row['titre'],
|
|
|
|
|
$row['description'],
|
|
|
|
|
$row['date'],
|
|
|
|
|