ActionController: introduce showCompact
Works like view=compact, it will allow us to "free" the "view" parameter
This commit is contained in:
parent
321924906f
commit
1f5db2f8c1
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue