summaryrefslogtreecommitdiff
path: root/app/php/url/config.xml
blob: b072b2de8e6555aa28700d8fc9f9a75905194e40 (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
<?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="Calendar"
           UrlFormat="HiddenPath"
           pattern="calendar/{calendar}/"
           parameters.calendar=".*" />

      <url ServiceParameter="*"
           UrlFormat="HiddenPath"
           EnableCustomUrl="false"
           pattern="{*}" />
    </module>

    <module id="request"
            class="THttpRequest"
            UrlFormat="HiddenPath"
            UrlParamSeparator="/"
            UrlManager="url" />
    <module id="response"
            class="THttpResponse"
            CacheControl="public"
            CacheExpire="10" />
  </modules>
</configuration>