summaryrefslogtreecommitdiff
path: root/demos/personal/index.php
diff options
context:
space:
mode:
authorxue <>2005-12-24 23:14:03 +0000
committerxue <>2005-12-24 23:14:03 +0000
commit14b7b01302f41051e9c86acab252209a95bf89f8 (patch)
tree9843b63462229451744876cadd759f4a3913e408 /demos/personal/index.php
parentf8bee13c2caaa769d55d14931809f8d092c9318b (diff)
Diffstat (limited to 'demos/personal/index.php')
-rw-r--r--demos/personal/index.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/demos/personal/index.php b/demos/personal/index.php
index 3e4985cc..174f5d33 100644
--- a/demos/personal/index.php
+++ b/demos/personal/index.php
@@ -1,14 +1,16 @@
<?php
-define('APPLICATION_PATH',dirname(__FILE__));
+$basePath=dirname(__FILE__);
+$frameworkPath=$basePath.'/../../framework/prado.php';
+$configPath=$basePath.'/protected/application.xml';
+$assetsPath=$basePath.'/assets';
-if(!is_writable(APPLICATION_PATH.'/protected/Data'))
- die('Please make sure that the directory "'.APPLICATION_PATH.'/protected/Data'.'" is writable by Web server process.');
-if(!is_writable(APPLICATION_PATH.'/assets'))
- die('Please make sure that the directory "'.APPLICATION_PATH.'/assets'.'" is writable by Web server process.');
+if(!is_writable($assetsPath))
+ die("Please make sure that the directory $assetsPath is writable by Web server process.");
-require_once(APPLICATION_PATH.'/../../framework/prado.php');
-$application=new TApplication(APPLICATION_PATH.'/protected/Data/application.xml');
+require_once($frameworkPath);
+
+$application=new TApplication($configPath,true);
$application->run();
?> \ No newline at end of file