I have tried to use cakephp Debugkit toolbar for cakephp 2.1.3... but it is not working fine..
I have implemented debugkit on cakephp 1.3 it is working fine..
i downloaded debugkit for cakephp 2.1.3. I rechecked that..
How i am implementing it??
app/plugin/DebugKit ///this is my path for debugkit
I checked my debug mode is 2..
Configure::write('debug', 2);
how i am loading my debug kit in Appcontroller..'
public $components = array('DebugKit.Toolbar');
It is showing error
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
I download debugkit from different source but same result.
Thanks !
it is showing error in this function and line
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);
};
};
I loaded file in bootstrap.php at the end
CakePlugin::loadAll();
Error:-
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.phplooks likE? - Andreas Wong