diff --git a/WEB/Config/Autoload.php b/WEB/Config/Autoload.php index bb47d4ea..37475027 100644 --- a/WEB/Config/Autoload.php +++ b/WEB/Config/Autoload.php @@ -37,7 +37,7 @@ class Autoload $dir =array('Model/','./','Config/','Controller/','Metier/', 'Factory/'); foreach ($dir as $d){ $file=$rep.$d.$filename; - // echo $file; + echo $file."\n"; if (file_exists($file)) { include $file; diff --git a/WEB/Model/VisitorModel.php b/WEB/Model/VisitorModel.php index fa5ccbff..63359887 100644 --- a/WEB/Model/VisitorModel.php +++ b/WEB/Model/VisitorModel.php @@ -8,10 +8,9 @@ class VisitorModel function __construct() { try { - require_once('Controller/EnigmeGateway.php'); echo 'model1'; global $error, $view, $rep; - $enigme_gateway = new EnigmeGateway(); + // $this->enigme_gateway = new EnigmeGateway(); // $this->partie_gateway = new PartieGateway(); // $this->utilisateur_gateway = new UtilisateurGateway(); } catch (Exception $e) {