summaryrefslogtreecommitdiff
path: root/demos/quickstart/index.php
diff options
context:
space:
mode:
authorxue <>2005-12-23 17:53:37 +0000
committerxue <>2005-12-23 17:53:37 +0000
commitb9cd9367da104e5d3a4310fd1c40b841f5fbb286 (patch)
treef57dc89a9afabb37aaa86f5411251e436d149e0c /demos/quickstart/index.php
parent9c1e1d5efa7ebef6596e4d2dd8a42892648c8e1b (diff)
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