nouveau module "models" dans l'environnement
[mtweb] / mw / app / controllers / config / index.php
similarity index 89%
rename from mw/app/mods/config/index.php
rename to mw/app/controllers/config/index.php
index 1e84189..c3ac7a3 100644 (file)
@@ -1,8 +1,9 @@
 <?php
 
-  class mw_config_index extends mw_mod{
+  class mw_config_index extends mw_controller{
 
-    function index(&$env){
+    function index(){
+      $env = $this->env();
       $data = $env->data();
       if(($config = $env->get_CONFIG()) === false){
         $env->erreur("Impossible de lire la configuration");