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/Templates1.page | 2 +- .../protected/pages/Configurations/UrlMapping.page | 41 +++++++++++++++------- 2 files changed, 30 insertions(+), 13 deletions(-) (limited to 'demos/quickstart/protected/pages/Configurations') diff --git a/demos/quickstart/protected/pages/Configurations/Templates1.page b/demos/quickstart/protected/pages/Configurations/Templates1.page index 7acd92d0..958e27cf 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates1.page +++ b/demos/quickstart/protected/pages/Configurations/Templates1.page @@ -85,7 +85,7 @@ Comments INVISIBLE to end-users Note, template comments (by <!-- ... --!>) cannot appear in a property value.
-Since version 3.0.5, PRADO starts to support external template inclusion. This is accomplished via include tags, where external template files are specified in namespace format and their file name must be terminated as .tpl.
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 @@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