menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Basculeradherents"); $this->adherent = new Adherent(); $this->police = new Police(); } public function index() { $idPolice = $_SESSION['idPolice_C']; //var_dump($idPolice); $adherents = $this->adherent->getlisteassuresabasculer($idPolice); $chemin = $this->menuvue->getChemin('Basculeradherents'); $_SESSION['idCollegePolice'] = ""; $garants = $this->police->getGarants(); $polices = array(); $adherentsBascules = array(); $colleges = array(); $produits = array(); $collegesPolice = $this->police->getListeCollegePolice($idPolice); $options = $this->police->getOptionsBasculement(); $this->genererVue(array( 'adherents' => $adherents, 'garants' => $garants, 'polices' => $polices, 'adherentsBascules' => $adherentsBascules, 'colleges' => $colleges, 'options' => $options, 'produits' => $produits, 'collegesPolice' => $collegesPolice, 'chemin' => $chemin )); } }