summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/samples/day2/blog/protected/application.xml
blob: 503b625af516d68edfdc5a69fe5886640f94e854 (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
<?xml version="1.0" encoding="utf-8"?>

<application id="blog" mode="Debug">
  <paths>
    <using namespace="Application.database.*" />
  </paths>

  <!-- configurations for modules -->
  <modules>
    <!-- Remove this comment mark to enable caching
    <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>
    -->
    <module id="db" class="System.Data.TDataSourceConfig">
      <database ConnectionString="sqlite:protected/data/blog.db" />
    </module>
    <module class="System.Data.ActiveRecord.TActiveRecordConfig" ConnectionID="db" />
  </modules>

  <!-- configuration for available services -->
  <services>
    <service id="page" class="TPageService" DefaultPage="Home">
      <pages MasterClass="Application.layouts.MainLayout" />
    </service>
  </services>

  <!-- application parameters
  <parameters>
    <parameter id="param1" value="value1" />
    <parameter id="param2" value="value2" />
  </parameters>
  -->
</application>