summaryrefslogtreecommitdiff
path: root/demos/blog
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog')
-rw-r--r--demos/blog/protected/application.php12
-rw-r--r--demos/blog/protected/application.xml10
2 files changed, 11 insertions, 11 deletions
diff --git a/demos/blog/protected/application.php b/demos/blog/protected/application.php
index c6f26c7e..d7d7c97b 100644
--- a/demos/blog/protected/application.php
+++ b/demos/blog/protected/application.php
@@ -75,12 +75,12 @@ return array(
'class' => 'Application.Common.BlogDataModule',
),
),
- ),
- ),
- 'pages' => array(
- 'properties' => array(
- 'MasterClass' => 'Application.Layouts.MainLayout',
- 'Theme' => 'Basic',
+ 'pages' => array(
+ 'properties' => array(
+ 'MasterClass' => 'Application.Layouts.MainLayout',
+ 'Theme' => 'Basic',
+ ),
+ ),
),
),
); \ No newline at end of file
diff --git a/demos/blog/protected/application.xml b/demos/blog/protected/application.xml
index 1ab6a9c0..d28b2dd7 100644
--- a/demos/blog/protected/application.xml
+++ b/demos/blog/protected/application.xml
@@ -6,10 +6,10 @@
</paths>
<!-- modules configured and loaded for all services -->
<modules>
-
- <module id="request" class="THttpRequest" UrlFormat="Path" UrlManager="friendly-url" />
-
- <!--<module id="cache" class="System.Caching.TSqliteCache" />-->
+ <!-- Remove this comment mark to enable PATH url format
+ <module id="request" class="THttpRequest" UrlFormat="Path" />
+ -->
+ <module id="cache" class="System.Caching.TSqliteCache" />
<module class="Application.Common.BlogErrorHandler" />
<module id="log" class="System.Util.TLogRouter">
<route class="TFileLogRoute" Categories="BlogApplication" />
@@ -17,7 +17,7 @@
<module class="System.Util.TParameterModule" ParameterFile="Application.Data.Settings" />
<!-- use TUrlMapping to map URL patterns to particular requests -->
- <module id="friendly-url" class="System.Web.TUrlMapping" EnableCustomUrl="true">
+ <module id="friendly-url" class="System.Web.TUrlMapping">
<url ServiceParameter="Posts.ViewPost" pattern="post/{id}/?" parameters.id="\d+" />
<url ServiceParameter="Posts.ListPost" pattern="archive/{time}/?" parameters.time="\d{6}" />
<url ServiceParameter="Posts.ListPost" pattern="category/{cat}/?" parameters.cat="\d+" />