您的位置:首页 > 编程语言 > PHP开发

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

2016-12-05 17:03 381 查看
如果遇到如下问题: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或者24、删除sql_dump     位置为lib/Cake/View/Element/sql_dump完成后,将网页刷新,得到
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cakephp php
相关文章推荐