为了账号安全,请及时绑定邮箱和手机立即绑定

yii2.0数据库配置在什么位置

yii2.0数据库配置在什么位置

Yii
森栏 2019-03-02 15:03:23
yii2.0数据库配置在什么位置
查看完整描述

2 回答

?
交互式爱情

TA贡献1712条经验 获得超3个赞

公共的数据库在 /common/config/main-local.php

一般配置这一个就行了,如果前后台不用同一个的话,

前台在 /frontend/config/main-local.php

后台在 /backend/config/main-local.php

这是我的配置


查看完整回答
反对 回复 2019-03-08
?
PIPIONE

TA贡献1829条经验 获得超9个赞

公共的数据库在 /common/config/main-local.php
一般配置这一个就行了,如果前后台不用同一个的话,
前台在 /frontend/config/main-local.php
后台在 /backend/config/main-local.php

查看完整回答
反对 回复 2019-03-08
  • 2 回答
  • 0 关注
  • 1087 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信