Yii2.0高级版安装

安装

1.确保composer为最新:

composer self-update

2.安装composer插件,管理bower & npm 包。全局按照,一劳永逸:

composer global require "fxp/composer-asset-plugin:^1.3.1"

3.执行composer命令安装Yii2.0高级开发版:

composer create-project yiisoft/yii2-app-advanced advanced 2.0.12
提醒:
Could not fetch https://api.github.com/repos/RobinHerbots/Inputmask/commits/f29e2, please 
create a GitHub OAuth token to go over the API rate limit

解决:
转到:https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+MBP.local+Time
生成一个token。将该token赋值给Composer.Token即可。

4.初始化,选择开发模式

php init

5.配置数据库连接

vim common/config/main-local.php
注意将localhost改为127.0.0.1不然有可能报错

6.初始化数据迁移文件

php yii migrate

results matching ""

    No results matching ""