2014-03-18 34 views
2

您好,感謝您的幫助!在安裝CakePHP的DebugKit插件的不成功安裝後不會出現CakePHP DebugKit插件工具欄

多個步驟嘗試嘗試: 1.下載並解壓縮debug_kit(https://github.com/cakephp/debug_kit) 2.改名的文件「DebugKit」,並移動到/根目錄/ CakePHP的/插件(以便其內插件文件夾)。 3.對相應的文件進行了以下修改。 (我已經雙重和三重檢查了這些)

# Installation 

* Clone/Copy the files in this directory into `app/Plugin/DebugKit` 
* Ensure the plugin is loaded in `app/Config/bootstrap.php` by calling `CakePlugin::load('DebugKit');` 
* Include the toolbar component in your `app/Controller/AppController.php`: 
```php 
class AppController extends Controller { 
     public $components = array('DebugKit.Toolbar'); 
} 
``` 
* Set `Configure::write('debug', 1);` in `app/Config/core.php`. 
* Make sure to remove the 'sql_dump' element from your layout (usually 
    `app/View/Layouts/default.ctp` if you want to experience the awesome that is 
    the debug kit SQL log. 

當我到我的本地/ CakePHP的我看到其他的通知和我擁有一切配置,使它們呈現出綠色。然而,Cakephp甚至沒有看到我正在嘗試使用DebugKit插件並且不顯示工具欄。

我是CakePHP的新手,一直在通過教程來正確設置一切。我認爲DebugKit對於幫助我理解CakePHP非常有幫助。我經歷了幾個教程,並搜索了互聯網,但我一直無法使其工作。如果您有任何想法,請讓我知道!

注: 的CakePHP版本2.4.6 DebugKit 2.2.1(也嘗試更新的版本) 燈安裝在Ubuntu 12.04

+2

您是否嘗試過參閱http://stackoverflow.com/questions/15124398/how-to-install-debugkit-on-cakephp – Dezigo

+0

你改變你的插件文件夾的權限? – skywalker

+0

@Dezigo,是的,這是我嘗試安裝它的教程之一,以及來自Lynda.com和其他一些網站的教程之一。 –

回答

0
  1. 在CakePHP根目錄>插件文件夾,這正是DebugKit應該留下。
  2. 然後,您需要通過將工具包加載到引導程序中來使該工具包可用。在app> config> bootstrap.php中添加這一行;
CakePlugin::load('DebugKit');