View Source

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFPROP:Proposal Zone Template}


Lead: [Ben Scholzen|]
Contributor: [Christoph Dorn|]


1.0 - 11 June 2009: Initial Draft.

Zend_Toolbar is a component which provides the developer with enhanced debugging functionallity. Inspired by the Scienta ZF Debug plugin, it provides you with useful information about the current request.

Instead of printing out the information as plain HTML, Zend_Toolbar exposes the debug information via headers, and displays them via a Firefox extension at the bottom of the browser. This gives you two major advantages; First, you can debug non-HTML responses (like JSON, generated images and so on). Second, you are able to debug requests in production environment without disturbing other users.

For allowing production debugging, the Zend_Toolbar Firefox extension allows to define hostnames and paths to debug, and let you provide a password, so unauthorized users will not get any debug information via the headers.

Prototype of the Toolbar in Firefox 3.0:

* [Scienta ZF Debug|]

* This component *will* only support Firefox 3 and up (does anyone want to write an IE equivalent extension?).
* This component *will only* display the toolbar when the user is authorized and debug information are available
* This component *must* be backward compatible (e.g. a toolbar extension v2.0.0 should be able to display information from a 1.9.0)
* This component *will* allow authorization via hostname/path prefixes (password only)
* This component *will* allow to inspect variables and executed queries
* This component *will* allow to inspect information about the router and evaluated routes
* This component *will* display additional information like runtime, memory usage, filesize, etc.
* This component *will* use Zend_Wildfire for communication between server and extension

* Zend_Exception
* Zend_Controller
* Zend_Db
* Zend_Wildfire

The component is instantiated in the bootstrap by calling Zend_Toolbar::init(); with regarding options, like e.g. a required password. When a request comes in, it collects all required information and appends them to the response object as headers at the end.

* Milestone 1: [DONE] Prototype checked into SVN:
* Milestone 2: Working prototype checked into the incubator
* Milestone 3: Unit tests exist, work, and are checked into SVN.
* Milestone 4: Initial documentation exists.

* Zend_Toolbar
* Zend_Toolbar_Plugin


Initialising Zend_Toolbar


Initialising Zend_Toolbar with password protection
Zend_Toolbar::init(array('password' => 'foobar');

class Zend_Toolbar {
* Initiate the toolbar
* @param array $options
* @return void
public static function init(array $options = null)

class Zend_Toolbar_Plugin {
public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)

public function dispatchLoopShutdown()