First exploration of PHP-Yii framework

 Due to the needs of the project, I spent a day last week to become familiar with PHP's yii framework. This week I continued my work on java. After all, it took time, so I will briefly record it here.

Yii  Framework is a component-based, high-performance PHP framework for developing large-scale web applications. . . . .

First of all, we need to know that PHP is generally a script file placed on the server. Its operation requires an environment, which is also called a service. If you are like me and don’t even know what Wampserver is, then let’s go to Baidu first: How to set up a PHP server operating environment. Then there is a lot of information.

1: Set up PHP running environment

Download Wampserver and install it.

installation steps. . . . . . After the installation is complete, remember to follow the installation steps to verify whether the installation was successful. (Just write a php file to access)

 

Two: Prepare an editor (IDE),

Just choose phpstorm

 

Three: Download yii and install it

https://github.com/yiisoft/yii2/releases/download/2.0.10/yii-advanced-app-2.0.10.tgz

This is the advanced version, which is actually the basic version with an additional server backend.

For the specific construction process, you should follow the official website, which is much clearer than what I explained http://www.yii-china.com/post/detail/1.html

Don’t miss one of the more critical points when installing:

4. Run CMD to enter the installation directory, execute init or run init.bat in the installation directory, select 0 development mode to install

 

Four: Open the project and edit it yourself

Open the project with phpstorm64 , edit it yourself, and explore it.

Guess you like

Origin blog.csdn.net/qq_22824481/article/details/81191110