| 1 |
lars |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
|
|
|
3 |
<application id="blog" mode="Debug">
|
|
|
4 |
<paths>
|
|
|
5 |
<using namespace="Application.database.*" />
|
|
|
6 |
</paths>
|
|
|
7 |
|
|
|
8 |
<!-- configurations for modules -->
|
|
|
9 |
<modules>
|
|
|
10 |
<!-- Remove this comment mark to enable caching
|
|
|
11 |
<module id="cache" class="System.Caching.TDbCache" />
|
|
|
12 |
-->
|
|
|
13 |
|
|
|
14 |
<!-- Remove this comment mark to enable PATH url format
|
|
|
15 |
<module id="request" class="THttpRequest" UrlFormat="Path" />
|
|
|
16 |
-->
|
|
|
17 |
|
|
|
18 |
<!-- Remove this comment mark to enable logging
|
|
|
19 |
<module id="log" class="System.Util.TLogRouter">
|
|
|
20 |
<route class="TBrowserLogRoute" Categories="System" />
|
|
|
21 |
</module>
|
|
|
22 |
-->
|
|
|
23 |
<module id="db" class="System.Data.TDataSourceConfig">
|
|
|
24 |
<database ConnectionString="sqlite:protected/data/blog.db" />
|
|
|
25 |
</module>
|
|
|
26 |
|
|
|
27 |
<module
|
|
|
28 |
class="System.Data.ActiveRecord.TActiveRecordConfig"
|
|
|
29 |
ConnectionID="db" />
|
|
|
30 |
|
|
|
31 |
<module id="auth"
|
|
|
32 |
class="System.Security.TAuthManager"
|
|
|
33 |
UserManager="users"
|
|
|
34 |
LoginPage="users.LoginUser" />
|
|
|
35 |
|
|
|
36 |
<module id="users"
|
|
|
37 |
class="System.Security.TDbUserManager"
|
|
|
38 |
UserClass="Application.BlogUser" />
|
|
|
39 |
|
|
|
40 |
</modules>
|
|
|
41 |
|
|
|
42 |
<!-- configuration for available services -->
|
|
|
43 |
<services>
|
|
|
44 |
<service id="page" class="TPageService" DefaultPage="Home">
|
|
|
45 |
<pages MasterClass="Application.layouts.MainLayout" />
|
|
|
46 |
</service>
|
|
|
47 |
</services>
|
|
|
48 |
|
|
|
49 |
<!-- application parameters
|
|
|
50 |
<parameters>
|
|
|
51 |
<parameter id="param1" value="value1" />
|
|
|
52 |
<parameter id="param2" value="value2" />
|
|
|
53 |
</parameters>
|
|
|
54 |
-->
|
|
|
55 |
</application>
|