Home >Backend Development >PHP Tutorial >Yii introductory tutorial - Yii installation and hello world, yii introductory tutorial_PHP tutorial

Yii introductory tutorial - Yii installation and hello world, yii introductory tutorial_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:13:131024browse

Yii introductory tutorial - Yii installation and hello world, yii introductory 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/917024.htmlTechArticleYii introductory tutorial - Yii installation and hello world, yii introductory tutorial 1, download Yii, site: http:// www.yiiframework.com/download/ Pay attention to the version, this is based on Yii1, if it is Yii2...
Statement:
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