summaryrefslogtreecommitdiff
path: root/app/php/application.xml
blob: 9f1cb340a92fdb53b31ceca6b121aa7714ae0639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?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>
    -->

    <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>
</application>