function getListDomaines() { $domaineDao = new DomaineDao(new Domaine()); $list = $domaineDao->getAllData(); return array("domaines" => $list); }