diff options
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/public/index.php b/public/index.php index 9dea217..c0b0b68 100644 --- a/public/index.php +++ b/public/index.php @@ -7,8 +7,7 @@ * Let's keep it simple and clear * * anom is an(other) Object-Oriented MVC php-framework. - * It is a super-light, fast and extensible development - * tool. + * It is a super-light, fast and extensible. * * Contains implementations of almost anything you need * to start and optimize a server-based web-application. @@ -22,22 +21,18 @@ * ----------------------------------------------------------------------------- */ -// specify base paths +// Define the Base Paths // ----------------------------------------------------------------------------- - $dir = explode('/', __DIR__); $pub = array_pop($dir); -define('APP_ROOT', implode('/',$dir)); // root of application (public's parent) - -define('WEB_ROOT', APP_ROOT.'/'.$pub); // root of public directory - +define('APP_ROOT', implode('/',$dir)); // App's root directory +define('WEB_ROOT', APP_ROOT.'/'.$pub); // the public directory // Load parametres: -// contants and constant arrays +// paths, contants and central arrays // ----------------------------------------------------------------------------- - require_once WEB_ROOT.'/app/config/setup_framework.php'; // application constants @@ -64,10 +59,10 @@ if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life // Initialize Application // finalize framework; handle credentials; setup app-engine; insert routes // ----------------------------------------------------------------------------- - require_once APPLICATION_BOOTSTRAP; + // Application is ready! // ----------------------------------------------------------------------------- |
