迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
在config/database.php 增加一個其他數據庫連接后,怎么在控制器中使用呢?
我記得生成好像有
回復迅睿框架創始人
按文檔
\Phpcmf\Service::M()->db
是不是這樣呢?
\Phpcmf\Service::M("otherdbname")->db
https://codeigniter4.github.io/userguide/database/connecting.html
http://www.zbshanke.com/doc/857.html
我記得生成好像有
回復迅睿框架創始人
按文檔
是不是這樣呢?
https://codeigniter4.github.io/userguide/database/connecting.html
https://codeigniter4.github.io/userguide/database/connecting.html
http://www.zbshanke.com/doc/857.html