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: