summaryrefslogtreecommitdiff
path: root/demos/activeblog/index.php
diff options
context:
space:
mode:
authorjrags <>2007-02-21 05:27:30 +0000
committerjrags <>2007-02-21 05:27:30 +0000
commit2aa645dd2697838711df45e4d2694a7001c1c58d (patch)
treef163175be637d18d0428160d4fca3d023f9aec7b /demos/activeblog/index.php
parent826b3eb8c84e7663a53361fb87774b76f98b10d4 (diff)
As discussed, we would like to see an active blog demo, and like everything it must have a beginning.
Diffstat (limited to 'demos/activeblog/index.php')
-rw-r--r--demos/activeblog/index.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/demos/activeblog/index.php b/demos/activeblog/index.php
new file mode 100644
index 00000000..c9808717
--- /dev/null
+++ b/demos/activeblog/index.php
@@ -0,0 +1,22 @@
+<?php
+$frameworkPath=dirname(__FILE__).'/../../framework/prado.php';
+
+/** The directory checks may be removed if performance is required **/
+$basePath=dirname(__FILE__);
+$assetsPath=$basePath."/assets";
+$runtimePath=$basePath."/protected/runtime";
+
+if(!is_file($frameworkPath))
+ die("Unable to find prado framework path $frameworkPath.");
+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();
+
+?> \ No newline at end of file