ActionController: introduce showCompact

Works like view=compact, it will allow us to "free" the "view" parameter
This commit is contained in:
Thomas Gelf 2015-06-18 13:12:12 +02:00
parent 321924906f
commit 1f5db2f8c1
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ class ActionController extends Zend_Controller_Action
$this->_helper->layout()->moduleName = false;
$this->view->compact = $request->getParam('view') === 'compact';
if ($request->getUrl()->shift('showCompact')) {
$this->view->compact = true;
}
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
$this->xhrLayout = 'body';
}