dor2p0520 2014-02-09 14:30
浏览 72

安装Cakephp DebugKit

I have had difficulty getting DebugKit configured with CakePHP. I've read the answer here: How to Install DebugKit on CakePHP but it doesn't seem to have helped.

Here is what I have done so far:

Created a directory called DebugKit in app/Plugin

Downloaded all the files from Git (They come in a folder called debug_kit but I just copied all the files in that folder and placed them in my newly created DebugKit folder)

Uncommented the line CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit in Bootstrap.php

My AppController Class now looks like this

class AppController extends Controller {

public $components = array('DebugKit.Toolbar');

}

My Core.php has this line:

Configure::write('debug', 1);

And I have commented out this line in the file default.ctp

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

The error message I receive is:

Error: The application is trying to load a file from the DebugKit plugin

Error: Make sure your plugin DebugKit is in the app\Plugin directory and was loaded

I have been URL Rewriting enabled as per these instructions: http://book.cakephp.org/2.0/en/installation/url-rewriting.html#apache-and-mod-rewrite-and-htaccess

And my Web application directory structure looks like this: Wamp/www/cakephp/

I also notice that there is a folder called plugins at this location: cakephp/plugins - I have tried copying the downloaded plugin to that location but it doesn't work either.

Any suggestions would be greatly appreciated.

L

  • 写回答

3条回答 默认 最新

  • dsmvqp3124 2014-02-09 20:17
    关注

    This was a very silly mistake of mine - I had just uncommented the line CakePlugin::load('DebugKit'); in the bootstrap.php file but it was still surrounded by a comment block, so uncommenting the line took no effect. Silly me.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用