diff options
author | carlgmathisen <> | 2008-12-07 13:05:05 +0000 |
---|---|---|
committer | carlgmathisen <> | 2008-12-07 13:05:05 +0000 |
commit | 736e92efbc75908a2bf26fe333a03990e3bb8100 (patch) | |
tree | 21dfe413b2f3f52704ca28e17f22269f9cfdb5ea /demos/blog/protected/application.xml | |
parent | 6228873cf9d6471463d2413e7dfd7447f759baf2 (diff) |
work on php style configuration
Diffstat (limited to 'demos/blog/protected/application.xml')
-rw-r--r-- | demos/blog/protected/application.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/blog/protected/application.xml b/demos/blog/protected/application.xml index d28b2dd7..1ab6a9c0 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>
- <!-- Remove this comment mark to enable PATH url format
- <module id="request" class="THttpRequest" UrlFormat="Path" />
- -->
- <module id="cache" class="System.Caching.TSqliteCache" />
+
+ <module id="request" class="THttpRequest" UrlFormat="Path" UrlManager="friendly-url" />
+
+ <!--<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">
+ <module id="friendly-url" class="System.Web.TUrlMapping" EnableCustomUrl="true">
<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+" />
|