nouveau module "models" dans l'environnement
[mtweb] / mw / app / controllers / index / index.php
similarity index 79%
rename from mw/app/mods/index/index.php
rename to mw/app/controllers/index/index.php
index 52ead31..770f3bb 100644 (file)
@@ -1,8 +1,9 @@
 <?php
 
-  class mw_index_index extends mw_mod{
+  class mw_index_index extends mw_controller{
 
-    function index(&$env){
+    function index(){
+      $env = $this->env();
       $start_action = $env->config("start_action");
       if($start_action){
         $start_action_params = $env->config("start_action_params");