Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Doctrine panel for ZFDebug
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Danceric/Controller/Plugin/Debug/Plugin
.gitignore
.zfproject.xml
README.markdown

README.markdown

as of 2010-05-26, all the stuff about integrating Doctrine and Zend Framework have been removed as there is now a semi-official ZFDoctrine project, see the announcement

Doctrine panel for ZFDebug 1.5

This is a proof of concept to have the Doctrine profiler info on a ZFDebug panel for Zend Framework.

Usage

You have to put the Danceric folder in you library folder (if you're using the default ZF layout) and enable it in your bootstrap. See Installation Instructions on the ZFDebug website

Example (in Bootstrap.php):

protected function _initZFDebug()
{
    $autoloader = Zend_Loader_Autoloader::getInstance();
    $autoloader->registerNamespace('ZFDebug');
    $autoloader->registerNamespace('Danceric');

    // Ensure doctrine db instance is loaded
    $this->bootstrap('doctrine');

    $options = array(
        'plugins' => array('Variables',
            'Danceric_Controller_Plugin_Debug_Plugin_Doctrine',
            'File',
            'Memory',
            'Time',
            'Exception'
        ),
    );

    $debug = new ZFDebug_Controller_Plugin_Debug($options);

    $this->bootstrap('frontController');
}

Before the semi-official zf-doctrine

If you're not using ZFDoctrine for any reason, you might want to see my sample project by looking at the zfdebugdoctrine/Doctrine-1.2-beta tag. Keep in mind that it is not the supported way anymore though.

Something went wrong with that request. Please try again.