summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-21 13:31:48 -0500
committerM <m@lfurio.us>2015-11-21 13:31:48 -0500
commit39ad0dfc8ce79a3e3b013cef67568edd01fe48d2 (patch)
tree563d0593e1ca9b8fe9ccecd5c0d3bbc94b1f5467 /app/index.php
parent4fc41ad060b5aab7bb6e595e64083fda2d8a44da (diff)
downloadscrott-39ad0dfc8ce79a3e3b013cef67568edd01fe48d2.tar.gz
scrott-39ad0dfc8ce79a3e3b013cef67568edd01fe48d2.zip
+ Adding main source file which invokes the master controller
Diffstat (limited to '')
-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.
+
+?>