Fifth, the database is automatically loaded CI framework

First, in the autoload.php config file, if you write the following code, you do not need to load the database again in the controller, the equivalent of a global database automatically load

 

Guess you like

Origin www.cnblogs.com/tianpan2019/p/11141769.html