summaryrefslogtreecommitdiff
path: root/app/php/application.xml
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-02-26 14:59:34 +0100
committeremkael <emkael@tlen.pl>2016-02-26 14:59:34 +0100
commitb6ad16cbd2092d76d4fed03d37a77d29b5b38f00 (patch)
tree437bb2efbce01724cde04320edfb61d3e6fade93 /app/php/application.xml
parent16b4dda0f1d2df3a280b6507e12fe381ba0e8e74 (diff)
* database connection setup in PHP app
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>