Debugkit不显示工具栏

时间:2014-04-20 14:19:20

标签: php cakephp plugins install

我也阅读了this个问题和this。我按照这些链接中提到的所有步骤。在我的情况下,调试工具包它出现在页面上,而不是像它应该的侧栏。我错过了什么?似乎是js或css失败了。我使用的是cakephp 2.4.7和debugkit 2.2.3。 我的步骤是:

 - Clone/Copy the files in this directory into app/Plugin/DebugKit

 - Ensure the plugin is loaded in app/Config/bootstrap.php by calling CakePlugin::load('DebugKit');

 - Include the toolbar component in your AppController.php: public $components = array('DebugKit.Toolbar');

 - Set debug mode equal 2.
 - Remove the 'sql_dump' element from default layout.

提前致谢。

1 个答案:

答案 0 :(得分:1)

最后我发现了我的问题。 date_default_timezone_set()未定义。看来:

  

DateTime :: __ construct():依赖系统的时区设置是不安全的。您必需使用date.timezone设置或date_default_timezone_set()函数。如果您使用了这些方法中的任何一种并且仍然收到此警告,则很可能拼错了时区标识符。我们选择了欧洲/巴黎' for' WEST / 1.0 / DST'代替

因此,您必须在core.php中取消注释第270行。

相关问题