menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Changercollege'); $this->adherent = new Adherent(); $this->college = (new Collegepolice())->getListeToutes($_SESSION['idPolice_C']); $this->college_temp = new College_temp(); } public function index() { $idPolice = $_SESSION['idPolice_C']; $idAdherent = $_SESSION['idAdherent_C']; $adherent = $this->adherent->getAdherentId($idAdherent); $collegeTemp = $this->college_temp->init_changement_college($idAdherent); $this->genererVue(array('adherent' => $adherent, 'college' => $this->college, 'collegeTemp' => $collegeTemp)); } public function changercollege() { $idAdherent = $_SESSION['idAdherent_C']; $this->college_temp->changer_college($idAdherent); $this->rediriger("Ficheadherent/".$idAdherent); } }