From 5b9748c2081b18ee843078fdc0e6acf2162a953d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 3 Jan 2017 11:28:58 +0100 Subject: [PATCH] Controller: fix class usage, add new helper --- library/Businessprocess/Web/Controller.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/library/Businessprocess/Web/Controller.php b/library/Businessprocess/Web/Controller.php index b7ba8b3..4dd2564 100644 --- a/library/Businessprocess/Web/Controller.php +++ b/library/Businessprocess/Web/Controller.php @@ -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');