summaryrefslogtreecommitdiff
path: root/demos/site/index.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-11-09 00:33:08 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-11-09 00:33:08 +0100
commit151b2f7d102a5988b63255d27c9ad78202c16355 (patch)
treeeb5a790407c79ea3a2c74e26c1d97473effae2a2 /demos/site/index.php
parentc198ade3610cecd190b74d8519947ad734a0bcca (diff)
Added (partial) website + misc updates for release
* recreated the prado website in demos/ * updated some docs to reflect the usage of jquery; removed guide to prototype * updated composer * added task for apigen4 (theme still missing)
Diffstat (limited to 'demos/site/index.php')
-rwxr-xr-xdemos/site/index.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/demos/site/index.php b/demos/site/index.php
new file mode 100755
index 00000000..0192f1cb
--- /dev/null
+++ b/demos/site/index.php
@@ -0,0 +1,17 @@
+<?php
+
+$basePath=dirname(__FILE__);
+$frameworkPath=$basePath.'/../../framework/prado.php';
+$assetsPath=$basePath.'/assets';
+$runtimePath=$basePath.'/protected/runtime';
+
+if(!is_writable($assetsPath))
+ die("Please make sure that the directory $assetsPath is writable by Web server process.");
+if(!is_writable($runtimePath))
+ die("Please make sure that the directory $runtimePath is writable by Web server process.");
+
+require_once($frameworkPath);
+
+$application=new TApplication;
+$application->run();
+