yii2项目连接多个数据库
摘要:
web.php配置,引入或者直接设置db 我的是引入 $db = require __DIR__ . '/db.php'; components下设置 'db' => $db['db'], 'db2' => $db['db2'], db.php文件,设置成自己的数据库配置 <?php return 阅读全文
posted @ 2024-03-13 15:59 xuxxnb 阅读(43) 评论(0) 推荐(0) 编辑