nouveau module "models" dans l'environnement
[mtweb] / index.php
index 26b6745..d75db99 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,6 +1,10 @@
 <?php
 
-  require "mw/main.php";
-  if($mw = __mw("config.php")) __mw_display($mw);
+  require "mw/mw_app.php";
+  $app = new mw_app();
+  if($app->init("config.php")){
+    $app->run();
+    $app->display();
+  }
 
 ?>
\ No newline at end of file