1. Download YII2.0 source file
2. Unzip Yii2.0, copy to website root directory
3. Import into your own IDE
4. The above basic construction is OK
5. The next step is to build your own application project, copy backend this directory to the sibling directory, and named blog
6. Configure bootstrap.php
7. Copy backend This directory to a sibling directory and named blog
8. Configuring the Init.bat File
9. Open the OpenSSL extension in php.ini
10. Next Run Init.bat, select 0 to return the car, then select Yes to enter
11. Completed the construction of the project
12. To access the application, if this error occurs, resolve the following:
Workaround:
It's OK to run again.
13. If this interface is present, OK.
14. Ways to access address changes
After the change: http://blog.xkhua.com
WORKAROUND: In Apache's vhost.conf configuration file, add the following, restart Apache
15. When I enter a user name and password, I am prompted with this error
Workaround:
Configuration code: Http://www.yiichina.com/doc/guide/2.0/db-dao
15. Configure the namespace, the ID of the configuration item