The entry script is used to process the user's initial boot PHP script. It is the only PHP script that an end user can directly request for execution. In most cases, the entry script of a Yii application contains a simple script like the following: & amp; nbsp; delete this line defined (& amp; #39; YII_DEBUG & amp; #39;) & amp; nbsp; or & amp; nbsp; define (& amp; #39; YII_DEBUG & amp; #39;, true ); & amp; nbsp; contains the Yii Boot File & amp; nbsp; re... the entry script is used to process the user's initial boot PHP script. It is the only PHP script that an end user can directly request for execution. In most cases, the entry script of a Yii application contains a simple script like the following: // delete this line defined ('yii _ debug') in the production environment ') or define ('yii _ debug', true); // contains the YII boot file require_once ('path/to/Yii/framework/yii. php '); // create an application instance and execute $ configFile = 'path/to/config/file. php '; Yii: createWebApplication ($ configFile)-> run (); the script first contains the Yii Framework boot file yii
1. Yii Framework official tutorial 5-Basic Knowledge: Portal script
Introduction: Portal script is the first step in the application startup process. an application (whether a web application or a console application) has only one portal script. End users' requests are instantiated through the portal script and forwarded to the application. Web application portal
3. Yii2 framework basics-controller yii cross-controller call method yii2 cross-controller call yii settings default control
Introduction: Controller, yii: Yii2 framework basics-controller: for relevant installation and configuration, refer to the Chinese document, step by step. Next, let's make a simple summary of what we learned over the past few days. 1. Application Structure of Yii: Each application has an entry script web/index. php, which is the only PHP script accessible to the entire application. The process for an application to process requests is as follows: 1. the user initiates a request to the portal script web/index. php. 2. the portal script loads application configurations and creates an application instance to process requests. 3. the application parses the request route through the request component.
4. yii Framework website resolution
Introduction: If you have not configured urlManager in config main php, the process is as follows (from yii official website). the user sends an access URL http: www example com index php? R = post show & id = 1 request. the Web server executes the entry script index p
5. if you have any questions about yii, please leave a message.
Introduction: yii problem. welcome to message configuration: xp + apache2.2.4 + php5.2.5 + yii1.1.3 problem: the entry script index. php can be entered, but when entering http: // 127.0.0.1/index. php? When r = user, apache stops with an error. the error module is php_pdo_mysql.dll. However, on the yii requirement check page, the PDO extension module and PDO MySQL extension module are all green
6. Yii Framework analysis (I) analysis of the startup process of index. php
Introduction: 1. start the unique entry program index of the website. php: $ yii = dirname (_ FILE __). /.. /framework/yii. php; $ config = dirname (_ FILE __). /protected/config/main. php; // remove the following line when in production modedefined (YII_DEBUG) or define (YII_DEBUG, true); requi
7. explain the operating mechanism of PHP Yii Framework and its routing function
Overview: running Mechanism Overview every time a Yii application starts to process HTTP requests, it performs a similar process. The user submits a request pointing to the portal script web/index. php. The entry script loads the configuration array and creates an application instance to process the request. The application parses the requested route through the request application component.
[Related Q & A recommendations ]:
The above is the detailed content of the 10 recommended script source code (favorites). For more information, see other related articles in the first PHP community!