Backup MySQL database with CodeIgniter

前端 未结 15 1532
一生所求
一生所求 2020-12-30 06:39

I have been looking into the user guide which came with CodeIgniter. I became very interested with the dbutil() method. Particularly the following line of code:

15条回答
  •  一向
    一向 (楼主)
    2020-12-30 07:11

    These lines have been grabbed from codeigniters documentation:

    Important: In order to initialize the Utility class, your database driver must already be running, since the utilities class relies on it.

    Please check if your database class is loaded or not when you call this function. Or you can put this line before loading the dbutil class $this->load->database();

提交回复
热议问题