debugging - Installing ZFDebug toolbar on ZF 1.10+ -
i think it'll have zfdebug tutorial in so.
i wondering if use zfdebug toolbar
zf 1.10+
(i'm using 1.11.2
). have following code in bootstrap nothing seems happen:
protected function _initzfdebug() { $autoloader = zend_loader_autoloader::getinstance(); $autoloader->registernamespace('zfdebug'); if ('development' == application_env) { $options = array( 'jquery_path' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', 'plugins' => array('variables', 'html', 'database' => array(), 'file' => array('basepath' => application_path . '/application'), 'memory', 'time', 'registry', //'cache' => array('backend' => $cache->getbackend()), 'exception') ); $debug = new zfdebug_controller_plugin_debug($options); $this->bootstrap('frontcontroller'); $frontcontroller = $this->getresource('frontcontroller'); $frontcontroller->registerplugin($debug); } }
- make sure
application_env
set'development'
- make sure have valid layout (with
<head>
,<body>
) - the basepath option should
application_path . '/../'
Comments
Post a Comment