function afficherGroupes() { $groupes = readGroupes(); $groupesEtEtudiants = array(); foreach ($groupes as $groupe) { $monGroupe = new Groupe($groupe->GRP_ID, $groupe->GRP_NOM); $monGroupe->setEtudiants(getEtudiantsParGroupe($groupe->GRP_ID)); $groupesEtEtudiants[] = $monGroupe; } include 'vue/groupe/index.php'; }