Controller: fix class usage, add new helper

This commit is contained in:
Thomas Gelf 2017-01-03 11:28:58 +01:00
parent 9c22289bf3
commit 5b9748c208

View file

@ -75,7 +75,7 @@ class Controller extends ModuleController
protected function actions()
{
if ($this->view->actions === null) {
$this->view->actions = ActionBar::create();
$this->view->actions = new ActionBar();
}
return $this->view->actions;
@ -195,6 +195,13 @@ class Controller extends ModuleController
return $bp;
}
protected function doNotRender()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
return $this;
}
protected function loadBpConfig()
{
$name = $this->params->get('config');