aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..aff455e
--- /dev/null
+++ b/index.php
@@ -0,0 +1,37 @@
+<?php
+
+
+session_start();
+
+
+
+require(__DIR__ . '/fn/w.fn.php');
+
+function class_autoloader($class)
+{
+ require(__DIR__ . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php');
+}
+
+
+require(__DIR__ . '/../vendor/autoload.php');
+
+spl_autoload_register('class_autoloader');
+
+
+$app = new Application();
+$app->wakeup();
+
+try {
+ $matchoper = new Routes();
+ $matchoper->match();
+
+} catch (Exception $e) {
+ echo 'Exception reçue : ', $e->getMessage(), "\n";
+}
+
+
+
+
+
+
+?> \ No newline at end of file