diff --git a/Vues/accueil.php b/Vues/accueil.php index e69de29..41d188a 100644 --- a/Vues/accueil.php +++ b/Vues/accueil.php @@ -0,0 +1,32 @@ + + + + Ajouter une Liste + + + + +
+
+
+ getName(); ?> +
+ + +
+
+ diff --git a/config/Autoload.php b/config/Autoload.php index cbbeb58..ed6ed8e 100644 --- a/config/Autoload.php +++ b/config/Autoload.php @@ -20,10 +20,10 @@ class Autoload{ private static function _autoload($class){ global $rep; $filename = $class.'.php'; - $dir = array('modeles/', 'config', 'controllers'); + $dir = array('modeles/', 'config/', 'controllers/', 'metier/'); foreach ($dir as $d){ $file=$rep.$d.$filename; - if($file_exists($file)){ + if(file_exists($file)){ include $file; } } diff --git a/config/config.php b/config/config.php index 6c3e552..7f9fc13 100644 --- a/config/config.php +++ b/config/config.php @@ -4,10 +4,10 @@ $rep = __DIR__ . '/../'; //$location = "Location : http://londres.uca.local/" Finir le chemin du public_html -$base=""; //nom bdd -$login=""; -$password=""; -$dsn=""; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) +$base="dbthchazot1"; //nom bdd +$login="thchazot1"; +$password="achanger"; +$dsn="mysql:host=localhost;dbname=dbthchazot1"; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) $vues['erreur'] = 'Vues/erreur.php'; diff --git a/controllers/frontController.php b/controllers/FrontController.php similarity index 100% rename from controllers/frontController.php rename to controllers/FrontController.php diff --git a/controllers/userController.php b/controllers/UserController.php similarity index 100% rename from controllers/userController.php rename to controllers/UserController.php diff --git a/controllers/visitorController.php b/controllers/VisitorController.php similarity index 100% rename from controllers/visitorController.php rename to controllers/VisitorController.php diff --git a/gateway/connection.php b/gateway/Connection.php similarity index 100% rename from gateway/connection.php rename to gateway/Connection.php diff --git a/gateway/listeGateway.php b/gateway/ListeGateway.php similarity index 98% rename from gateway/listeGateway.php rename to gateway/ListeGateway.php index f7abf98..4e16a09 100644 --- a/gateway/listeGateway.php +++ b/gateway/ListeGateway.php @@ -1,7 +1,5 @@ id=$id; diff --git a/modeles/mdlListe.php b/modeles/MdlListe.php similarity index 100% rename from modeles/mdlListe.php rename to modeles/MdlListe.php diff --git a/modeles/mdlTache.php b/modeles/MdlTache.php similarity index 100% rename from modeles/mdlTache.php rename to modeles/MdlTache.php diff --git a/modeles/mdlUser.php b/modeles/MdlUser.php similarity index 100% rename from modeles/mdlUser.php rename to modeles/MdlUser.php