How to use the yii framework after downloading: first install the yii framework; then configure the web server; then open Apache or Nginx, PHP, MySql; finally visit "hostname.com" to use the YII framework.
#After downloading the yii framework, install it, and then configure the Web server.
Access the installed Yii framework application
Make sure that the PHP development environment has been set up, and Apache or Nginx, PHP , MySql is open, visit hostname.com, if the following page appears, then, congratulations, you can use the YII framework normally to develop your project.
Recommended: "yii Tutorial"
The application request cycle of the YII framework is as shown in the following figure:
1. The user initiates a request to the entry script web/index.php.
2. The entry script loads the application configuration and creates an application instance to handle the request.
3. The application resolves the requested route through the request component.
4. The application creates a controller instance to handle the request.
5. The controller creates an action instance and executes the filter for the operation.
6. If any filter returns failure, the action is cancelled.
7. If all filters pass, the action will be executed.
8. The action will load a data model, perhaps from a database.
9. The action will render a view and provide the data model to it.
10. The rendering result is returned to the response component.
11. The response component sends the rendering result to the user's browser.
The above is the detailed content of How to use the yii framework after downloading it. For more information, please follow other related articles on the PHP Chinese website!