From 6ea993425cc0982ecef765d4bfc6b75b7206416d Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 28 Dec 2005 13:11:07 +0000 Subject: --- .../protected/pages/Configurations/AppConfig.page | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'demos/quickstart/protected/pages/Configurations/AppConfig.page') diff --git a/demos/quickstart/protected/pages/Configurations/AppConfig.page b/demos/quickstart/protected/pages/Configurations/AppConfig.page index dc4675f1..101e449c 100644 --- a/demos/quickstart/protected/pages/Configurations/AppConfig.page +++ b/demos/quickstart/protected/pages/Configurations/AppConfig.page @@ -5,7 +5,7 @@ Application configurations are used to specify the global behavior of an application. They include specification of path aliases, namespace usages, module and service configurations, and parameters.
-Configuration for an application is stored in an XML file named application.xml
, which should be located under the application base path. Its format is shown in the following,
+Configuration for an application is stored in an XML file named application.xml, which should be located under the application base path. Its format is shown in the following,
<application PropertyName="PropertyValue" ...>
<paths>
@@ -24,17 +24,17 @@ Configuration for an application is stored in an XML file named applicatio
</application>
<application>
corresponds to the TApplication
instance. The PropertyName="PropertyValue"
pairs specify the initial values for the properties of TApplication
.<paths>
element contains the definition of path aliases and the PHP inclusion paths for the application. Each path alias is specified via an <alias>
whose path
attribute takes an absolute path or a path relative to the directory containing the application configuration file. The <using>
element specifies a particular path (in terms of namespace) to be appended to the PHP include paths when the application runs. PRADO defines two default aliases: System
and Application
. The former refers to the PRADO framework root directory, and the latter refers to the directory containing the application configuration file.<modules>
element contains the configurations for a list of modules. Each module is specified by a <module>
element. Each module is uniquely identified by the id
attribute and is of type class
. The PropertyName="PropertyValue"
pairs specify the initial values for the properties of the module.<services>
element is similar to the <modules>
element. It mainly specifies the services provided by the application.<parameters>
element contains a list of application-level parameters that are accessible from anywhere in the application. You may specify component-typed parameters like specifying modules, or you may specify string-typed parameters which take a simpler format as follows,
+<parameter id="ParameterID">ParameterValue</parameter>
THttpRequest
, THttpResponse
, etc. It will also provide the TPageService
as a default service. Configuration and usage of these modules and services are covered in individual sections of this tutorial. Note, if your application takes default settings for these modules and service, you do not need to provide an application configuration. However, if these modules or services are not sufficient, or you want to change their behavior by configuring their property values, you will need an application configuration.
+By default without explicit configuration, a PRADO application when running will load a few core modules, such as THttpRequest, THttpResponse, etc. It will also provide the TPageService as a default service. Configuration and usage of these modules and services are covered in individual sections of this tutorial. Note, if your application takes default settings for these modules and service, you do not need to provide an application configuration. However, if these modules or services are not sufficient, or you want to change their behavior by configuring their property values, you will need an application configuration.
\ No newline at end of file
--
cgit v1.2.3