diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
commit | d7f3313ff4514e38c9f53439cd1a1287e56e45f7 (patch) | |
tree | abff39ab11cb317f5fcd2db558da1c59bdae9239 /index.php | |
parent | 2f363e8fa26ab849539e64ff7caa21bd164e8979 (diff) | |
download | wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.tar.gz wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.zip |
reboot folder
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 37 |
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 |