etat = new Statistique(); } public function index() { $debutPeriode = $this->requete->getParametreDate("debutPeriode"); $finPeriode = $this->requete->getParametreDate("finPeriode"); $donnees = $this->etat->etatfactparmois($debutPeriode, $finPeriode) ; $donnees_total = null; if(count($donnees)>"0") { $donnees_total = $donnees['0']; } $this->genererVueAjax(array('donnees' => $donnees, 'donnees_total' => $donnees_total)); } }