From 2febfa7d8b152ff8d540242bec354c92c9f2f73c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 1 Apr 2006 14:57:03 +0000 Subject: Fixed #111. --- framework/Web/THttpRequest.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'framework') diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 2fd02d1d..5ec09fc9 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -40,6 +40,14 @@ * To construct a URL that can be recognized by Prado, use {@link constructUrl()}. * THttpRequest also provides the cookies sent by the user, user information such * as his browser capabilities, accepted languages, etc. + * Currently, THttpRequest recognizes the following URL format: + * + * /index.php?ServiceID=ServiceParameter + * + * where ServiceID is as defined in the application configuration (e.g. + * the default page service's service ID is 'page'). + * Therefore, your GET variable names should not conflict with the service + * IDs that your application supports. * * By default, THttpRequest is registered with {@link TApplication} as the * request module. It can be accessed via {@link TApplication::getRequest()}. @@ -51,10 +59,6 @@ */ class THttpRequest extends TApplicationComponent implements IteratorAggregate,ArrayAccess,IModule { - /** - * GET variable name to store service information - */ - const SERVICE_VAR='sp'; /** * @var boolean whether the module is initialized */ @@ -431,7 +435,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar * Constructs a URL that is recognizable by Prado. * You may override this method to provide your own way of URL formatting. * The URL is constructed as the following format: - * /entryscript.php?sp=serviceID.serviceParameter&get1=value1&... + * /entryscript.php?serviceID=serviceParameter&get1=value1&... * @param string service ID * @param string service parameter * @param array GET parameters, null if not needed -- cgit v1.2.3