Cakephp环境安装问题:DebugKit is not installed.

如果遇到如下问题:

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


完成后,将网页刷新,得到


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值