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

Commit

Permalink
#91: Add ZFDebug to project
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jan 14, 2012
1 parent f90dc16 commit 6da47aa
Show file tree
Hide file tree
Showing 15 changed files with 2,276 additions and 0 deletions.
30 changes: 30 additions & 0 deletions application/Bootstrap.php
Expand Up @@ -91,6 +91,35 @@ protected function _initConfig()
$this->_registry->config = new stdClass();
$this->_registry->config->application = $config;
}

/**
* ZFDebug
*
* GitHub project https://github.com/jokkedk/ZFDebug
*
*/
protected function _initZFDebug()
{
if ('development' == APPLICATION_ENV) {
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('ZFDebug');

$options = array(
'plugins' => array('Variables',
//'Database' => array('adapter' => $db),
'File' => array('basePath' => APPLICATION_PATH .
'..'),
//'Cache' => array('backend' => $cache->getBackend()),
'Exception'
)
);
$debug = new ZFDebug_Controller_Plugin_Debug($options);

$this->bootstrap('frontController');
$frontController = $this->getResource('frontController');
$frontController->registerPlugin($debug);
}
}

/**
* Tmp director
Expand Down Expand Up @@ -176,5 +205,6 @@ protected function _initDoctrine()
$this->_registry->doctrine = new stdClass();
$this->_registry->doctrine->_em = EntityManager::create($this->_registry->config->application->doctrine->connection->toArray(), $config);
}


}

0 comments on commit 6da47aa

Please sign in to comment.