From 75583383a6c00704837a753741abfc049dcc5a90 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 24 Sep 2006 02:20:54 +0000 Subject: Merge from 3.0 branch till 1443. --- .../protected/pages/Configurations/UrlMapping.page | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'demos/quickstart/protected/pages/Configurations') diff --git a/demos/quickstart/protected/pages/Configurations/UrlMapping.page b/demos/quickstart/protected/pages/Configurations/UrlMapping.page index 22cb866a..dde6854f 100644 --- a/demos/quickstart/protected/pages/Configurations/UrlMapping.page +++ b/demos/quickstart/protected/pages/Configurations/UrlMapping.page @@ -20,13 +20,21 @@ file and before any services.

The mapping format is as follows. - +

-

The PageClass set the name of class that the matched URL will -be requested.

The Pattern and Parameters attribute +

The ServiceParameter and ServiceID + (the default ID is 'page') set the service parameter and service ID respectively. + 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. +See Services for further details. +

+ +

+The Pattern and Parameters attribute values are regular expression patterns that determine the mapping criteria. The Pattern property takes a regular expression with parameter names enclosed between a left brace '{' @@ -34,13 +42,13 @@ and a right brace '}'. The pattens for each parameter can be set using Parametersattribute collection. For example, -

The example is equivalent, using regular expression only, to - + \d{4})/(?P\d{2})/(?P\d+) ]]> -- cgit v1.2.3