Plugin ajout debug
This commit is contained in:
parent
f29a3b62d8
commit
02db4d4415
@ -3,6 +3,8 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN AUTH - START');
|
||||
|
||||
$checkAuth = true;
|
||||
if ($request->getControllerName()=='user' && $request->getActionName()=='login') {
|
||||
$checkAuth = false;
|
||||
@ -150,5 +152,7 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN AUTH - END');
|
||||
}
|
||||
}
|
@ -9,6 +9,8 @@ class Application_Controller_Plugin_Cgu extends Zend_Controller_Plugin_Abstract
|
||||
*/
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN CGU - START');
|
||||
|
||||
$layout = Zend_Layout::getMVCInstance();
|
||||
if ($layout->isEnabled()) {
|
||||
$tabCgu = array(
|
||||
@ -55,5 +57,6 @@ class Application_Controller_Plugin_Cgu extends Zend_Controller_Plugin_Abstract
|
||||
break;
|
||||
}
|
||||
}
|
||||
Zend_Registry::get('firebug')->info('PLUGIN CGU - END');
|
||||
}
|
||||
}
|
@ -9,6 +9,8 @@ class Application_Controller_Plugin_Lang extends Zend_Controller_Plugin_Abstract
|
||||
*/
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN LANG - START');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ( $auth->hasIdentity() ) {
|
||||
$identity = $auth->getIdentity();
|
||||
@ -52,5 +54,7 @@ class Application_Controller_Plugin_Lang extends Zend_Controller_Plugin_Abstract
|
||||
$registry = Zend_Registry::getInstance();
|
||||
$registry->set('Zend_Locale', $locale);
|
||||
$registry->set('Zend_Translate', $translate);
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN LANG - START');
|
||||
}
|
||||
}
|
@ -7,6 +7,8 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
||||
*/
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN MENU - START');
|
||||
|
||||
$layout = Zend_Layout::getMVCInstance();
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
@ -77,5 +79,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
//$view->aide = true;
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN MENU -END');
|
||||
}
|
||||
}
|
@ -3,6 +3,8 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public function dispatchLoopShutdown()
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN PDF - START');
|
||||
|
||||
$layout = Zend_Layout::getMVCInstance();
|
||||
if ($layout->isEnabled()) {
|
||||
$controller = $this->_request->getControllerName();
|
||||
@ -18,5 +20,7 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
|
||||
file_put_contents($c->profil->path->shared.'/temp/pages/'.$filename.'.html', $content);
|
||||
}
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN PDF - END');
|
||||
}
|
||||
}
|
@ -3,6 +3,8 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
||||
{
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN THEME - START');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$theme = 'default'; //$theme = 'mobile';
|
||||
if ( $auth->hasIdentity() ) {
|
||||
@ -184,5 +186,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN THEME - STOP');
|
||||
}
|
||||
}
|
@ -3,6 +3,8 @@ class Application_Controller_Plugin_Xml extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public function dispatchLoopShutdown()
|
||||
{
|
||||
Zend_Registry::get('firebug')->info('PLUGIN XML - START');
|
||||
|
||||
$layout = Zend_Layout::getMVCInstance();
|
||||
if ($layout->isEnabled()) {
|
||||
|
||||
@ -17,5 +19,7 @@ class Application_Controller_Plugin_Xml extends Zend_Controller_Plugin_Abstract
|
||||
$page->objectToXML($view->exportObjet, $this->_request->getParams());
|
||||
}
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info('PLUGIN XML - END');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user