diff options
Diffstat (limited to '')
-rw-r--r-- | app/index.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php new file mode 100644 index 0000000..37258d7 --- /dev/null +++ b/app/index.php @@ -0,0 +1,16 @@ +<?php + +require_once "controller/root.control.php"; + +/* + * Entry-point to app. Grab the requested path and pass it to the root app controller. + */ +function main($argv) +{ + $app = new Root(); + $app->handle($argv); +} + +main(explode("/", $_REQUEST['path'])); // Start rendering web page for the requested path. + +?> |