如果遇到如下问题:
DebugKit is not installed.It will help you inspect and debug different aspects of your application.
如下面图示
可以通过下面4个步骤解决:参考(http://stackoverflow.com/questions/15124398/how-to-install-debugkit-on-cakephp)
1、在app/Plugin下创建DebugKit文件夹,在网上下载cakephp对应的DebugKit(https://github.com/cakephp/debug_kit),将zip包内容解压到DebugKit下(如下图)
2、
(1)在app/Config/bootstrap.php
中添加
CakePlugin::load('DebugKit');
(2)在
app/Controller/AppController.php中添加
public $components = array( 'DebugKit.Toolbar');
如果已经有components这个元素,直接在后面添加一个元素,‘DebugKit.Toolbar‘3、确认Config/core.php
中
Configure::write('debug', 2);
的值为1或者2
4、删除sql_dump
位置为lib/Cake/View/Element/sql_dump
完成后,将网页刷新,得到