From 6c374ad1891b85b65c52b8f37ec7e0b8ecca3bfe Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 23 Sep 2006 06:36:11 +0000 Subject: change PageClass to ServiceParameter in TUrlMapping --- .../protected/pages/Configurations/UrlMapping.page | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'demos/quickstart') 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