From 49b19e95939cd38ffc9b2601a2c97ea1ee4d8eb3 Mon Sep 17 00:00:00 2001 From: M Date: Sat, 21 Nov 2015 19:59:25 -0500 Subject: + Added app root controller * Finished implementing app main function to instanciate root and delegate to it --- app/controller/root.control.php | 20 ++++++++++++++++++++ app/index.php | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 app/controller/root.control.php (limited to 'app') diff --git a/app/controller/root.control.php b/app/controller/root.control.php new file mode 100644 index 0000000..2d12eb6 --- /dev/null +++ b/app/controller/root.control.php @@ -0,0 +1,20 @@ + diff --git a/app/index.php b/app/index.php index 854df0b..37258d7 100644 --- a/app/index.php +++ b/app/index.php @@ -7,8 +7,8 @@ require_once "controller/root.control.php"; */ function main($argv) { - /* TODO */ - echo "Scrott!
"; + $app = new Root(); + $app->handle($argv); } main(explode("/", $_REQUEST['path'])); // Start rendering web page for the requested path. -- cgit v1.2.3