summaryrefslogtreecommitdiff
path: root/app/php/application.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/application.xml')
-rw-r--r--app/php/application.xml31
1 files changed, 8 insertions, 23 deletions
diff --git a/app/php/application.xml b/app/php/application.xml
index 98f3af5..4aa2f30 100644
--- a/app/php/application.xml
+++ b/app/php/application.xml
@@ -1,39 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
-
<application id="http" mode="Debug">
- <!-- alias definitions and namespace usings
- <paths>
- <alias id="myalias" path="./lib" />
- <using namespace="Application.common.*" />
- </paths>
- -->
-
- <!-- configurations for modules -->
<modules>
- <!-- Remove this comment mark to enable caching
- <module id="cache" class="System.Caching.TDbCache" />
- -->
-
+ <module id="db"
+ class="Application.db.DBModule"
+ config="../../config/db.json" />
+ <module class="System.Data.ActiveRecord.TActiveRecordConfig"
+ ConnectionID="db"
+ EnableCache="true" />
+ <module id="cache"
+ class="System.Caching.TDbCache" />
<!-- Remove this comment mark to enable PATH url format
<module id="request" class="THttpRequest" UrlFormat="Path" />
-->
-
<!-- Remove this comment mark to enable logging
<module id="log" class="System.Util.TLogRouter">
<route class="TBrowserLogRoute" Categories="System" />
</module>
-->
</modules>
-
- <!-- configuration for available services -->
<services>
<service id="page" class="TPageService" DefaultPage="Home" />
</services>
-
- <!-- application parameters
- <parameters>
- <parameter id="param1" value="value1" />
- <parameter id="param2" value="value2" />
- </parameters>
- -->
</application>