function getListProjets() { $projetDao = new ProjetDao(new Projet()); $list = $projetDao->getAllData(); return array('projets' => $list); }