Introduce GET parameter _disableLayout to ... disable the entire layout

refs #8758
This commit is contained in:
Johannes Meyer 2015-07-16 11:23:48 +02:00
parent 6d4d99aa62
commit d192410435
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ class ActionController extends Zend_Controller_Action
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
$this->xhrLayout = 'body';
}
if ($request->getUrl()->shift('_disableLayout')) {
$this->_helper->layout()->disableLayout();
}
if ($this->requiresLogin()) {
$this->redirectToLogin(Url::fromRequest());