diff options
author | xue <> | 2005-11-16 21:23:12 +0000 |
---|---|---|
committer | xue <> | 2005-11-16 21:23:12 +0000 |
commit | 65acec4f65ddefcb3e9f9762d958be0539f3f71a (patch) | |
tree | 44928b527a4e88e8c4fb61976b779505a101f68a /demos/personal | |
parent | 455faa0a6a6f3c6d3fac751149781e3e3100cc7e (diff) |
Diffstat (limited to 'demos/personal')
-rw-r--r-- | demos/personal/index.php | 10 | ||||
-rw-r--r-- | demos/personal/protected/application.xml | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/demos/personal/index.php b/demos/personal/index.php index d5f7caf3..4b7e8a5f 100644 --- a/demos/personal/index.php +++ b/demos/personal/index.php @@ -1,8 +1,14 @@ <?php
-require_once(dirname(__FILE__).'/../../framework/prado.php');
+define('APPLICATION_PATH',dirname(__FILE__));
-$application=new TApplication(dirname(__FILE__).'/protected/application.xml',dirname(__FILE__).'/protected/application.cache');
+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.');
+
+require_once(APPLICATION_PATH.'/../../framework/prado.php');
+$application=new TApplication(APPLICATION_PATH.'/protected/application.xml',APPLICATION_PATH.'/protected/Data/application.cache');
$application->run();
?>
\ No newline at end of file diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml index e7eb5948..c8dd4467 100644 --- a/demos/personal/protected/application.xml +++ b/demos/personal/protected/application.xml @@ -7,7 +7,7 @@ <!-- modules configured and loaded for all services -->
<modules>
<!-- make sure the path "protected" is writable by web server process if you enable this cache
- <module id="cache" type="System.Data.TSqliteCache" DbFile="Data.Cache"/>
+ <module id="cache" type="System.Data.TSqliteCache" DbFile="Application.Data.Cache"/>
-->
<module id="session" type="THttpSession" />
</modules>
|