From 36a61db3144c111b722db89baf5a1d55c1c9a6b2 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Thu, 28 Sep 2006 00:11:36 +0000
Subject: Update TUrlMapping and THttpRequest
---
.../protected/pages/Configurations/UrlMapping.page | 41 +++++++++++++++-------
1 file changed, 29 insertions(+), 12 deletions(-)
(limited to 'demos/quickstart/protected/pages/Configurations/UrlMapping.page')
diff --git a/demos/quickstart/protected/pages/Configurations/UrlMapping.page b/demos/quickstart/protected/pages/Configurations/UrlMapping.page
index dde6854f..ff6f09c7 100644
--- a/demos/quickstart/protected/pages/Configurations/UrlMapping.page
+++ b/demos/quickstart/protected/pages/Configurations/UrlMapping.page
@@ -1,6 +1,6 @@
URL Mapping (Friendly URLs)
+URL Mapping (Friendly URLs)
The mapping format is as follows.
The ServiceParameter and ServiceID
- (the default ID is 'page') set the service parameter and service ID respectively.
+ (the default ID is 'page') set the service parameter and service ID, respectively, of
+ the Request module.
The service parameter for the TPageService service is the
Page class name, e.g., for an URL "index.php?page=Home", "page" is the service ID and the service
parameter is "Home". Other services may use the service parameter and ID differently.
@@ -42,15 +51,15 @@ and a right brace '}'. The pattens for each parameter can be set
using Parametersattribute collection.
For example,
For example, an URL "http://example.com/index.php/articles/2006/07/21" will be matched +
Following from the above pattern example, +an URL "http://example.com/index.php/articles/2006/07/21" will be matched and valid. However, "http://example.com/index.php/articles/2006/07/hello" is not valid since the "day" parameter pattern is not satisfied. In the default TUrlMappingPattern class, the pattern is matched against the path property of the URL only. For example, only the -"/index.php/articles/2006/07/21" portion of the URL is considered and the rest -is ignored. +"/index.php/articles/2006/07/21" portion of the URL is considered.
- -The parameter values are available through the standard Request +
+The mapped request URL is equivalent to index.php?page=ArticleView&year=2006&month=07&day=21. +The request parameter values are available through the standard Request object. For example, $this->Request['year'].
-- cgit v1.2.3