php Yii2.0框架安装使用教程

WBOY
Release: 2016-06-23 13:02:13
Original
1066 people have browsed it

1.下载YII2.0源码文件

2.解压Yii2.0,拷贝到网站根目录

3.导入到自己的IDE里面去

4.以上基本的构建好了

5.接下来就是构建自己的应用项目了,copy backend这个目录到同级目录,并且命名为blog

6.配置bootstrap.php

7.copy backend这个目录到同级目录,并且命名为blog

8.配置init.bat文件

9.在php.ini里面开启openssl的扩展

10.接下来运行init.bat,选择0回车,再选择yes回车

11.完成了项目的构建

12.访问应用,如果出现这个错误,解决如下:

解决方法:

再运行就OK了

13.如果出现这个界面就OK了

14.关于访问地址变更的方法

变化后: http://blog.xkhua.com

解决方法:在 apache 的 vhost.conf 配置文件里面添加如下,重启 apache

15.当我输入用户名和密码的时候,提示我这个错误

解决方法:

配置代码: http://www.yiichina.com/doc/guide/2.0/db-dao

15.配置命名空间,配置项目的id

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!