Installing the ZFDebug Toolbar on ZF 1.10+

I think it would be nice to have a ZFDebug tutorial in SO.

I was wondering if you can use the ZFDebug toolbar with ZF 1.10+ (I actually use 1.11.2 ). I have the following code in my bootstrap but nothing happens:

 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); } } 
+4
source share
1 answer
  • Make sure APPLICATION_ENV set to 'development'
  • Must have a valid layout (with <head> and <body> )
  • basePath must be APPLICATION_PATH . '/../' APPLICATION_PATH . '/../'
+2
source

Source: https://habr.com/ru/post/1338717/


All Articles