menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Creerfacturegarant"); $this->facture = new Facturegarant(); $this->periodicite = new Periodicite; $this->exercice = (new Exercice())->getListe(); $this->garants = (new Gestionconfiee())->getListe(); $this->periode = new Periode(); } public function index() { $chemin = $this->menuvue->getChemin('Creerfacturegarant'); $periodicites = array(); //$this->periodicite->getPeriodiciteFactureGarant(); $typefacture = array(); $naturefacture = $this->facture->getListeNatureFacture(); $this->genererVue(array( 'chemin' => $chemin, 'periodicites' => $periodicites, 'exercice' => $this->exercice, 'garants' => $this->garants, 'naturefacture' => $naturefacture )); } }