cakePHP不再提供调试信息 [英] cakePHP no longer giving debug information

查看:39
本文介绍了cakePHP不再提供调试信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从cakePHP 1.2.8升级到了1.3.5,现在调试信息(来自Core中设置的级别)似乎不再起作用。无论我将调试级别设置为什么级别,它都不会在屏幕底部显示查询。

I just upgraded from cakePHP 1.2.8 to 1.3.5 and now the debug information (that from the level set in the Core) does not seem to be doing anything anymore. No matter what level I set 'debug' to, it doesn't print the queries at the bottom of the screen.

您知道我做错了什么吗?

Any idea what I may have done wrong?

推荐答案

您需要将此元素包含在默认布局中(或实际上的任何地方):

you need to include this element in your default layout (or anywhere, really):

<?php echo $this->element('sql_dump'); ?>

请参阅:

http://book.cakephp.org/view/1567/Model-Databases-and-Datasources
&
http:// book .cakephp.org / view / 1561 / Migrating-from-CakePHP-1-2-to-1-3

这篇关于cakePHP不再提供调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆