summaryrefslogtreecommitdiff
path: root/demos/personal
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal')
-rw-r--r--demos/personal/index.php10
-rw-r--r--demos/personal/protected/application.xml2
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>