summaryrefslogtreecommitdiff
path: root/demos/quickstart/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/index.php')
-rw-r--r--demos/quickstart/index.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/quickstart/index.php b/demos/quickstart/index.php
new file mode 100644
index 00000000..174f5d33
--- /dev/null
+++ b/demos/quickstart/index.php
@@ -0,0 +1,16 @@
+<?php
+
+$basePath=dirname(__FILE__);
+$frameworkPath=$basePath.'/../../framework/prado.php';
+$configPath=$basePath.'/protected/application.xml';
+$assetsPath=$basePath.'/assets';
+
+if(!is_writable($assetsPath))
+ die("Please make sure that the directory $assetsPath is writable by Web server process.");
+
+require_once($frameworkPath);
+
+$application=new TApplication($configPath,true);
+$application->run();
+
+?> \ No newline at end of file