diff options
author | emkael <emkael@tlen.pl> | 2016-03-09 16:40:25 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-09 16:40:25 +0100 |
commit | 0d538c464954334652c86f74fdeb7b756713bf53 (patch) | |
tree | 615d246bb84902818f16d976506ed7520d3527c4 /app/php | |
parent | 9ffd441c1165284cf1de1907b8fd5f64383d3543 (diff) |
* configuration split into modules
Diffstat (limited to 'app/php')
-rw-r--r-- | app/php/application.xml | 56 | ||||
-rw-r--r-- | app/php/db/config.xml | 8 | ||||
-rw-r--r-- | app/php/model/config.xml | 8 | ||||
-rw-r--r-- | app/php/url/config.xml | 33 | ||||
-rw-r--r-- | app/php/user/config.xml | 9 |
5 files changed, 67 insertions, 47 deletions
diff --git a/app/php/application.xml b/app/php/application.xml index 9f1cb34..5feac98 100644 --- a/app/php/application.xml +++ b/app/php/application.xml @@ -1,55 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> <application id="http" mode="Debug"> - <modules> - - <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" /> - <module id="request" - class="THttpRequest" - UrlFormat="HiddenPath" - UrlParamSeparator="/" - UrlManager="url" /> - <module id="url" - class="Application.url.UrlManager" - UrlPrefix="/" - EnableCustomUrl="True"> - <url ServiceParameter="Home" - UrlFormat="HiddenPath" - pattern="{month}/{year}/" - parameters.month="\d{2}" - parameters.year="\d{4}" /> - <url ServiceParameter="Home" - UrlFormat="HiddenPath" - pattern="{month}/" - parameters.month="\d{2}" /> - <url ServiceParameter="Home" - UrlFormat="HiddenPath" - EnableCustomUrl="false" - pattern="" /> - <url ServiceParameter="*" - UrlFormat="HiddenPath" - EnableCustomUrl="false" - pattern="{*}" /> - </module> - <!-- Remove this comment mark to enable logging - <module id="log" class="System.Util.TLogRouter"> - <route class="TBrowserLogRoute" Categories="System" /> - </module> - --> + <include file="Application.db.config" /> + <include file="Application.model.config" /> + <include file="Application.user.config" /> + <include file="Application.url.config" /> - <module id="auth" class="System.Security.TAuthManager" - UserManager="users" LoginPage="Login" /> - <module id="users" class="System.Security.TDbUserManager" - UserClass="Application.user.DbUser" /> - </modules> <services> <service id="page" class="TPageService" /> </services> + + <modules> + <module id="cache" class="System.Caching.TDbCache" /> + </modules> + </application> diff --git a/app/php/db/config.xml b/app/php/db/config.xml new file mode 100644 index 0000000..d07618c --- /dev/null +++ b/app/php/db/config.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <modules> + <module id="db" + class="Application.db.DBModule" + config="../../config/db.json" /> + </modules> +</configuration> diff --git a/app/php/model/config.xml b/app/php/model/config.xml new file mode 100644 index 0000000..20e1277 --- /dev/null +++ b/app/php/model/config.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <modules> + <module class="System.Data.ActiveRecord.TActiveRecordConfig" + ConnectionID="db" + EnableCache="true" /> + </modules> +</configuration> diff --git a/app/php/url/config.xml b/app/php/url/config.xml new file mode 100644 index 0000000..a5870cd --- /dev/null +++ b/app/php/url/config.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <modules> + <module id="url" + class="Application.url.UrlManager" + UrlPrefix="/" + EnableCustomUrl="True"> + <url ServiceParameter="Home" + UrlFormat="HiddenPath" + pattern="{month}/{year}/" + parameters.month="\d{2}" + parameters.year="\d{4}" /> + <url ServiceParameter="Home" + UrlFormat="HiddenPath" + pattern="{month}/" + parameters.month="\d{2}" /> + <url ServiceParameter="Home" + UrlFormat="HiddenPath" + EnableCustomUrl="false" + pattern="" /> + <url ServiceParameter="*" + UrlFormat="HiddenPath" + EnableCustomUrl="false" + pattern="{*}" /> + </module> + + <module id="request" + class="THttpRequest" + UrlFormat="HiddenPath" + UrlParamSeparator="/" + UrlManager="url" /> + </modules> +</configuration> diff --git a/app/php/user/config.xml b/app/php/user/config.xml new file mode 100644 index 0000000..80027e5 --- /dev/null +++ b/app/php/user/config.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <modules> + <module id="auth" class="System.Security.TAuthManager" + UserManager="users" LoginPage="Login" /> + <module id="users" class="System.Security.TDbUserManager" + UserClass="Application.user.DbUser" /> + </modules> +</configuration> |