summaryrefslogtreecommitdiff
path: root/app/php/application.xml
blob: 13a86e1acf4770f973f4a75c8b795eff1c540bad (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
<?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>
    -->
  </modules>
  <services>
    <service id="page" class="TPageService" />
  </services>
</application>