diff options
Diffstat (limited to 'html/index.php')
| -rw-r--r-- | html/index.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/html/index.php b/html/index.php index d26d0a3..92b825a 100644 --- a/html/index.php +++ b/html/index.php @@ -28,11 +28,19 @@ require_once '../core/config/anom_settings.php'; // core framework constants require_once 'app/config/app_constants.php'; // application constants + // Enable Autoloader // ----------------------------------------------------------------------------- require_once AUTOLOADER; +// Enable sessions +// ----------------------------------------------------------------------------- +$session = new (SESSION_DRIVER)(); // Start a new session + + +// prepare output control and benchmarking +// ----------------------------------------------------------------------------- ob_start(); // handle output if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life @@ -44,11 +52,10 @@ if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life require_once INIT_APPLICATION; - // Application is ready! // ----------------------------------------------------------------------------- -Route::run(Registry::get('REQUEST')); // Run baby, run! +Route::run(Registry::get('REQUEST')); // Run baby, run! if (!PRODUCTION) Benchmark::add_spot('end'); // request ended |
