问题描述
我安装了CakePHP的调试工具包,但是它没有正确加载到我的页面,它只是一个乱七八糟的文本和数组在页面的底部。我的浏览器说,它得到一个404:
I've installed CakePHP's debug kit but it's not loading correctly on my pages, its just a mess of text and arrays at the bottom of the page. My browser is saying that it's getting a 404 on:
/debug_kit/css/debug_toolbar.css
/debug_kit/js/jquery.js
/debug_kit/js/js_debug_toolbar.js
/debug_kit/img/cake.icon.png
...所以它不是正确地找到webroots的插件。我已经指示我的浏览器到这些页面和其他组合我可以想到(例如:/ debugkit / css ...或/ debug_kit / webroot ...),但没有什么工作。
...so it's not finding the webroots for plugins properly. I have directed my browser to these pages and other combinations i could think of (e.g: /debugkit/css... or /debug_kit/webroot...) but nothing is working.
从我的google搜索看起来像一个问题,有几个人,但我还没有看到一个解决方案。
From my google searches it seems like a problem that a few people have had but I haven't seen a solution yet.
我删除了'sql_dump
I have removed the 'sql_dump' element from the bottom of the layout page and still nothing.
感谢
推荐答案
对于任何有此问题的人:
To anyone else having this problem:
这不是一个直接的解决方案,但有点小hack
It's not a direct solution, but sort of a little hack
复制 app / Plugin / DebugKit / webroot
到一个新文件夹 app / webroot / debug_kit
CakePHP没有看到插件webroot,但这将绕过这个问题。
The problem is that CakePHP is not seeing the Plugins webroot, but this will bypass this problem.
这篇关于CakePHP DebugKit /找不到插件webroot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!