diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-12 07:16:23 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-12 07:16:23 +0200 |
| commit | 7076343338ae3439f3c86f01144818abe8c31978 (patch) | |
| tree | 794abb1e6b8f821091fd095341885496b6dad51d /html/index.php | |
| parent | 47cbb529f5723b246125ae083a193e11481b89ef (diff) | |
| download | classroom-7076343338ae3439f3c86f01144818abe8c31978.tar.gz classroom-7076343338ae3439f3c86f01144818abe8c31978.tar.bz2 classroom-7076343338ae3439f3c86f01144818abe8c31978.zip | |
add container helpers; constuct public directory-tree
Diffstat (limited to 'html/index.php')
| -rw-r--r-- | html/index.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/html/index.php b/html/index.php new file mode 100644 index 0000000..05d4822 --- /dev/null +++ b/html/index.php @@ -0,0 +1,56 @@ +<?php +/** anom + * ANOther MVC framefork /////////////////////////////////////////////////////// + * ----------------------------------------------------------------------------- + * This is where the whole thing stats. + * Let's keep it simple and clear + * + * anom is an Object-Oriented MVC php-framework. + * It is super-light, fast and extensible. + * Contains almost anything you need to start + * and optimize a server-based web-application. + * And as long as you write code using secure practices, + * it will be secure. + * + * Copyleft: George Halkiadalos + * Licence: BSD + * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ + * ----------------------------------------------------------------------------- + */ +// Load parametres: +// contants and constant arrays +// ----------------------------------------------------------------------------- + +require_once '../core/config/constants.php'; // general constants + +require_once '../core/config/anom_settings.php'; // core framework constants + +require_once 'app/config/assets.php'; // application constants + + +// Enable Autoloader +// ----------------------------------------------------------------------------- +require_once AUTOLOADER; + + +ob_start(); // handle output +if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life + + +// Initialize Application +// finalize framework; handle credentials; setup app-engine; insert routes +// ----------------------------------------------------------------------------- + +require_once INIT_APPLICATION; + + + +// Application is ready! +// ----------------------------------------------------------------------------- + +Route::run(Registry::get('REQUEST')); // Run baby, run! + + +if (!PRODUCTION) Benchmark::add_spot('end'); // request ended +if (!PRODUCTION) Benchmark::render_report(); // echo benchmark report +ob_flush(); // flush output |
