loveagle 发表于 2011-5-15 15:30:01

enable_profiler不能显示SQL

我用控制器中激了分析器:“$this->output->enable_profiler(TRUE);”
但在页面下方的SQL显示块中却是如下字样:“Database driver is not currently loaded

我看不到运行的SQL,求解

jeongee 发表于 2011-5-15 17:46:10

你没加载数据库类,怎么加载看手册

loveagle 发表于 2011-5-15 23:12:36

控制器中加载数据库类了:$this->load->model('mdbtest');
也试着这样写过:$this->load->model('17souba/mdbtest','',TRUE);

模型层是这们写的:$this->db = $this->load->database('default', TRUE);
页: [1]
查看完整版本: enable_profiler不能显示SQL