diff --git a/application/class/application.class.php b/application/class/Application.php
similarity index 59%
rename from application/class/application.class.php
rename to application/class/Application.php
index a0a3ae6..e2ea8fb 100644
--- a/application/class/application.class.php
+++ b/application/class/Application.php
@@ -1,12 +1,8 @@
url->page['params'];
require TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . '.php';
} else {
- $this->modele = new Modele($application->url->page);
- $this->vue = new Vue($this);
+ $this->modele = new modele($application->url->page);
+ $this->vue = new vue($this);
}
}
diff --git a/application/class/dumper.class.php b/application/class/Dumper.php
similarity index 85%
rename from application/class/dumper.class.php
rename to application/class/Dumper.php
index fe5fcf4..c266080 100644
--- a/application/class/dumper.class.php
+++ b/application/class/Dumper.php
@@ -1,5 +1,8 @@
Page de gestion des adresses IP
-
-
Possibilités d'afficher toutes les adresses par VLAN et Zone d'adresse
-Ainsi que de faire des recherches par nom de machine, profil et adresse ip
-Possibilité d'ajouter/supprimer des VLAN dans la base de données
-Possibilité de supprimer les adresses ip qui ne sont pas modifiées par Abitop
-Historisation des ajouts et des suppressions
\ No newline at end of file
+Accueil
+
\ No newline at end of file
diff --git a/application/layout/include/standard/header.phtml b/application/layout/include/standard/header.phtml
index 9a17ce1..b300a45 100644
--- a/application/layout/include/standard/header.phtml
+++ b/application/layout/include/standard/header.phtml
@@ -1,7 +1,7 @@
diff --git a/application/parameters.php b/application/parameters.php
index 74c2d70..ac5ebdf 100644
--- a/application/parameters.php
+++ b/application/parameters.php
@@ -8,4 +8,4 @@ define('DSN_BDD2',"mysql:host=localhost;dbname=db2");
define('USER_BDD2',"user2");
define('PASS_BDD2',"pass2");
-define('PATH_URL',"http://ssdom.domain.tld/public/");
\ No newline at end of file
+define('PATH_URL',"http://vlan.localhost/");
\ No newline at end of file
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..790fe11
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,8 @@
+{
+ "autoload": {
+ "psr-4": {
+ "MVC\\Classe\\":"./application/class",
+ "MVC\\Objets\\":"./application/objets"
+ }
+ }
+}
diff --git a/public/index.php b/public/index.php
index 4896da6..635a298 100644
--- a/public/index.php
+++ b/public/index.php
@@ -4,10 +4,10 @@ error_reporting(-1);
ini_set('display_errors', 1);
define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application");
-define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."class");
+define("VENDOR_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."vendor");
+//require APPLICATION_PATH.DIRECTORY_SEPARATOR."autoloader.php";
+require VENDOR_PATH.DIRECTORY_SEPARATOR."autoload.php";
-require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php";
-
-$poo_v1 = new Application();
+$poo_v1 = new \MVC\Classe\Application();
$poo_v1->launch();