Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

eleclerc/zfdebugdoctrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Doctrine panel for ZFDebug

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages