Home >Backend Development >PHP Tutorial >Yii introductory tutorial - Yii installation and hello world, yii introductory tutorial_PHP tutorial
1. Download Yii, site: http://www.yiiframework.com/download/
Pay attention to the version. This is based on Yii1. It may be different if it is Yii2. . . .
2. Create a wen application directory under your own "www" directory. I call it "FantaCMS" here. Then unzip the Yii installation package you just downloaded, and then cut the "framework" directory in the unzipped file to " FantaCMS" directory
3. In command line mode, switch to the "framework" directory through the directory and execute:
Belong to "yes" to start executing the program
4, installation successful
5. The current directory structure of the project is as follows:
6. Access directly in the program: http://localhost/FantaCMS/, as shown in the picture:
7. In this way, the most basic Yii application has been established. If you want to access it by configuring a virtual host, then configure the virtual host and then access it directly through the configured domain name. But this step It’s not necessary, it depends on your personal habits. . .
Continue in the next section: Yii project directory structure analysis, Yii entry file analysis, Yii routing analysis, Yii template layout settings and Yii background project construction