output->enable_profiler(TRUE)无法显示结果
当我在控制器的function中插入:$this->output->enable_profiler(TRUE); 后,页面就一片空白,请问这是什么原因? 删除这句话后页面才能载入正常,但是我想查看sql语句等信息啊!!
通过 DB类 API查询
$this->db->last_query();
Returns the last query that was run (the query string, not the result). Example:
返回最后运行的查询(是查询语句,不是查询结果)
好久没用CI了,这次工作 又要用到CI了,大伙们我回来了。 暗夜星辰 发表于 2012-9-21 10:11 static/image/common/back.gif
通过 DB类 API查询
$this->db->last_query();
Returns the last query that was run (the query string, n ...
以前用这个output语句可以正常返回本次执行发生的所有sql、get、post等信息,现在怎么突然不好使了? 建议本地测试把调试开下
error_reporting = E_ALL | E_STRICT
display_errors = On
html_errors = On
注意生产环境和测试环境的切换
页:
[1]