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