Home > PHP Framework > YII > body text

How to use the yii framework after downloading it

藏色散人
Release: 2020-07-20 09:37:59
Original
2527 people have browsed it

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.

How to use the yii framework after downloading it

#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.

How to use the yii framework after downloading it

Recommended: "yii Tutorial"

The application request cycle of the YII framework is as shown in the following figure:

How to use the yii framework after downloading it

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!

Related labels:
yii
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template