summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
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..ca2ce45
--- /dev/null
+++ b/app/index.php
@@ -0,0 +1,16 @@
+<?php
+
+include_once "controller/root.control.php";
+
+/*
+ * Entry-point to app. Grab the requested path and pass it to the root app controller.
+ */
+function main($argv)
+{
+ /* TODO */
+ echo "Scrott!<br />";
+}
+
+main(explode("/", $_SERVER['PATH_INFO'])); // Start rendering web page for the requested path.
+
+?>