Sin descripción

shish 8aeea4c367 复制花材 hace 4 años
app-ghs 8aeea4c367 复制花材 hace 4 años
app-hd 93cb4b9043 初始化商品增加mainId hace 4 años
app-mall 93cb4b9043 初始化商品增加mainId hace 4 años
app-pt 59b4b28d8d 申请 hace 4 años
biz ac13c025ee pfShopId hace 4 años
biz-ghs deda165a2b main信息优化 hace 4 años
biz-hd 93cb4b9043 初始化商品增加mainId hace 4 años
biz-jd e0e0d15b09 admin hace 4 años
biz-mall ae1c42dac8 游客 hace 4 años
common aa18889964 开通与注册 hace 4 años
console 2146c140ab 字段 hace 4 años
doc 1316a75fcd 开发规范 hace 5 años
vendor d39e7fe89e shish ssh hace 4 años
.bowerrc fe19d464ec update .gitignore hace 6 años
.env.example 2a8cedae63 版本更新 hace 4 años
.gitattributes a69fcf925c init hace 6 años
.gitignore 56211e0228 字段调整 hace 5 años
.travis.yml a69fcf925c init hace 6 años
LICENSE.md a69fcf925c init hace 6 años
README.md b3d74cb721 README.md 文件更新 (框架相关的重要信息都在这里说明) hace 6 años
composer.json ba21b313b5 getui hace 4 años
composer.lock ba21b313b5 getui hace 4 años
env.php d352f757f5 使用 .env 来配置项目环境变量 hace 6 años
init a69fcf925c init hace 6 años
init.bat a69fcf925c init hace 6 años
sql.sql 2146c140ab 字段 hace 4 años
update.bat 5fa41d4799 支付 hace 5 años
yii 175b71e542 chmod hace 6 años
yii.bat a69fcf925c init hace 6 años

README.md

Yii 2 框架环境说明

文件目录说明

common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

创建.env文件

cp .env.example .env

1.数据库配置

DB_DSN='mysql:host=127.0.0.1;dbname=huahuibao' # ip地址;数据库名称
DB_USERNAME='root'  # 数据库用户名
DB_PASSWORD='353167' # 数据库密码

2.redis 配置

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null # 密码为空,请写上 null
REDIS_PORT=6379
REDIS_DB=0