Added module container, may be dropped again

This commit is contained in:
Thomas Gelf 2014-02-18 18:13:51 +00:00
parent 6b308986d1
commit db19ddca25
1 changed files with 10 additions and 0 deletions

View File

@ -275,6 +275,16 @@ class ActionController extends Zend_Controller_Action
if ($this->_request->getParam('format') === 'pdf' && $this->_request->getControllerName() !== 'static') { if ($this->_request->getParam('format') === 'pdf' && $this->_request->getControllerName() !== 'static') {
$this->sendAsPdfAndDie(); $this->sendAsPdfAndDie();
} }
// Module container
$module_name = $this->_request->getModuleName();
$this->_helper->layout()->moduleStart =
'<div class="icinga-module module-'
. $module_name
. '" data-icinga-module="' . $module_name . '">'
. "\n"
;
$this->_helper->layout()->moduleEnd = "</div>\n";
} }
protected function sendAsPdfAndDie() protected function sendAsPdfAndDie()