function demarrer() { $dao = new dao(); $tab_installations = $dao->getInstallations($this->recherche); $html = ""; $vue = new vueInstallation(); foreach ($tab_installations as $installation) { $html .= $vue->generer1Installation($installation); } $vue->afficher($html); }
<?php require "dao.php"; $dao = new dao(); var_dump($dao->getInstallations("Nantes"));