Examples of using Entry script in English and their translations into Portuguese
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
Php file in your entry script.
Php as the entry script instead of index. php.
Php file and include it in your entry script.
Php file in the entry script of your application.
Application is created as a singleton by the entry script.
The entry script creates a new instance of the application.
For example, you may call Yii::setAlias() in the entry script.
It is determined based on the directory containing the entry script.
The entry script loads the application configuration as an array.
Webroot: refers to the directory containing the entry script file.
The entry script is executed by the Web server to process the request;
The application object is instantiated as a singleton by the entry script.
The following is the code in the entry script for the Basic Web Project Template.
The entry script takes an incoming request and creates an application instance to handle it.
Bootstrapping is done in two places: the entry script and the application.
In the entry script, class autoloaders for different libraries are registered.
ShowScriptName: this property determines whether the entry script should be included in the created URLs.
The entry script then loads the application configuration and creates an application instance.
List the classes andthe corresponding file paths in Yii::$ classMap in the entry script of the application.
The entry script receives the exit status from the application and completes the request processing.
By default, it is a subdirectory named protected that is located under the directory containing the entry script.
Make sure the entry script of your application contains the following lines to install the Composer autoloader.
Constant definitions should be done at the very beginning of an entry script so that they can take effect when other PHP files are being included.
When an entry script creates an application, it will load a configuration and apply it to the application, as follows.
This file is so special because it is like the entry script and is the starting point when we execute a set of tests.
The entry script loads the application configuration and creates an application instance to handle the request.
The pretty URL format uses the extra path following the entry script name to represent the route and the associated query parameters.
Note: In order to hide the entry script name in the created URLs, besides setting showScriptName to be false, you may also need to configure your Web server so that it can correctly identify which PHP script should be executed when a requested URL does not explicitly specify one.
An Yii application has one entry script which is usually the only file that needs to be exposed to Web users.