summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2015-12-18 23:18:33 -0500
committerMalf Furious <m@lfurio.us>2015-12-18 23:18:33 -0500
commit9068e6916ad68194fce2518ab5841af1c8949f3d (patch)
tree2f91e9e3be00c1492cdf4ce88d8e77a909c5c287 /app/index.php
parent2ebdbaa48f10d6a6f5a1b78f4ef2c5433e50c8cf (diff)
parentb21251ef971d262dc414869fed83f52d0098bfe6 (diff)
downloadscrott-9068e6916ad68194fce2518ab5841af1c8949f3d.tar.gz
scrott-9068e6916ad68194fce2518ab5841af1c8949f3d.zip
Merge branch 'framework' into dev
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php16
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.
+
+?>