menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Produits"); $this->produit = new Produit(); $this->garant = (new Gestionconfiee())->getListe(); } public function index() { if(isset($_SESSION['garant'])){ $codeGcAssureur = $_SESSION['garant']; }else{ $codeGcAssureur = "AUC"; $_SESSION['garant'] = $codeGcAssureur; } $produits = $this->produit->getTousProduitsGarant($codeGcAssureur); $this->genererVue(array('produits' => $produits, 'garant' => $this->garant)); } }