How to introduce YII framework

Source: Internet
Author: User
Tags yii
Learn the YII framework, before familiar with the YII2, and now the maintenance of the project, found to use the Yii 1 version, so need to carry out a more comprehensive study, referring to a lot of online information, this article is suitable for beginners to learn, thank you ...


"1" first to download the latest version of the YII framework


(Because I can't download it, I get a framework yii 1.1.15 source code from other websites that can be used as learning)

After decompression can see the YII framework contains three folders and four files, of which four files are version notes, update logs, etc., do not scrutiny. What we need is the framework folder, which is the core of the YII framework.

"2" introduces Yii framework.

1. First of all, if there is a WAMP development environment, there is not much to say, then create the project folder under the Site directory and copy the framework folder to the past.

2. Run cmd, go to the directory of the Framework folder first, and then executeYIICWebApp ../ Shop(Any name):

PS: It is important to note that the path of PHP is added to the environment variables.

After the setup is OK ~

AppearYourApplication hasbeencreatedsuccessfullyunderW:\Newwamp\www\ Shop\ Shop.Description of the successful introduction of YII framework

This is to find that the framework sibling directory more than one folder shop, this folder is the introduction of the Yii framework files, the project will follow in the resulting folder:


Among them, we need to test whether the development needs are met:


Place the compressed package in theunder the www directory of Appserv, start Apache and mysqlandenter it in the Address bar: http://localhost/yii6/requirements/index.php, view the configuration environment,PDO and GD libraries need to be configured, open php.ini, join:

Extension=php_pdo_mysql.dll

Extension=php_mysql.dll




Introduction to the Project framework:



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.