summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-17 03:27:03 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-17 03:27:03 +0300
commitc870b0f4bb688d58575c700f523972bd5cf1be55 (patch)
tree0866cc8b7c6b48d0c8cb436b2148a44f7472383b /public/index.php
parentb49941608a8d37ca6bedf2529a703876530124d4 (diff)
downloadgyraf1gov-c870b0f4bb688d58575c700f523972bd5cf1be55.tar.gz
gyraf1gov-c870b0f4bb688d58575c700f523972bd5cf1be55.tar.bz2
gyraf1gov-c870b0f4bb688d58575c700f523972bd5cf1be55.zip
initializing framework refactoring completed
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php17
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!
// -----------------------------------------------------------------------------