我曾嘗試使用CakePHP Debugkit工具欄cakephp 2.1.3
...但它不能正常工作很好..如何使用工具欄DebugKit CakePHP中的2.1.3或2.0的CakePHP
我已經cakephp 1.3
實施debugkit這是工作很好..
我下載了調試套件cakephp 2.1.3
。我重新檢查..
我如何實現它?
app/plugin/DebugKit ///this is my path for debugkit
我檢查我調試模式爲2 ..
Configure::write('debug', 2);
如何我加載我的調試工具包中的AppController ..」
public $components = array('DebugKit.Toolbar');
它顯示錯誤
Parse error: syntax error, unexpected T_FUNCTION in /var/www/guest1/cakephp-2.1.3/app/Plugin/debug_kit/Controller/Component/ToolbarComponent.php on line 165
我從不同的源bu下載debugkit同樣的結果。
謝謝!
它表示在這個功能錯誤和線路
public function implementedEvents() {
$before = function ($name) {
return function() use ($name) {
DebugTimer::start($name, __d('debug_kit', $name));
};
};
$after = function ($name) {
return function() use ($name) {
DebugTimer::stop($name);
};
};
我裝在bootstrap.php中的文件在最後
CakePlugin::loadAll();
錯誤: -
Error: DebugKit.ToolbarComponent could not be found.
Error: Create the class ToolbarComponent below in file: /var/www/guest1/cakephp-2.1.3/app/Plugin/DebugKit/Controller/Component/ToolbarComponent.php
你能告訴我們'ToolbarComponent.php'中的第165行看起來似乎嗎? –
@SiGanteng看到我更新了我的錯誤行號 –