chenxu 发表于 2017-4-23 14:57:12

设置数据库全局加载后出错是什么原因呢?


修改autoload.php里面的$autoload['libraries'] = array('database');后就报错了
所有页面都报错
如下:
Warning: include(H:\WWW\WWW\ci\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in H:\WWW\WWW\ci\system\core\Exceptions.php on line 268

Warning: include(): Failed opening 'H:\WWW\WWW\ci\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in H:\WWW\WWW\ci\system\core\Exceptions.php on line268

Warning: include(H:\WWW\WWW\ci\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in H:\WWW\WWW\ci\system\core\Exceptions.php on line 268

Warning: include(): Failed opening 'H:\WWW\WWW\ci\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in H:\WWW\WWW\ci\system\core\Exceptions.php on line268
求解!

chenxu 发表于 2017-4-23 15:52:28

已经解决!

longjianghu 发表于 2017-4-23 15:54:57

$this->load->database();
页: [1]
查看完整版本: 设置数据库全局加载后出错是什么原因呢?