CC-2692: Integrate ZFDebug into Airtime
-done
This commit is contained in:
parent
46133166f3
commit
fdf1b4c100
15 changed files with 2268 additions and 0 deletions
|
@ -93,5 +93,27 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
$view = $this->getResource('view');
|
||||
$view->headTitle(Application_Model_Preference::GetHeadTitle());
|
||||
}
|
||||
|
||||
protected function _initZFDebug()
|
||||
{
|
||||
if (APPLICATION_ENV == "development"){
|
||||
global $CC_DBC;
|
||||
|
||||
$autoloader = Zend_Loader_Autoloader::getInstance();
|
||||
$autoloader->registerNamespace('ZFDebug');
|
||||
|
||||
$options = array(
|
||||
'plugins' => array('Variables',
|
||||
'Exception',
|
||||
'Memory',
|
||||
'Time')
|
||||
);
|
||||
$debug = new ZFDebug_Controller_Plugin_Debug($options);
|
||||
|
||||
$this->bootstrap('frontController');
|
||||
$frontController = $this->getResource('frontController');
|
||||
$frontController->registerPlugin($debug);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue