From 2dd694f3ece7cea3c3683dfdaa51b872ef51f555 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 20 Mar 2016 11:19:16 +0100 Subject: [PATCH] ActionController: add viewscript helper --- library/Director/Web/Controller/ActionController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index 8fe29890..c7fbab1f 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -156,6 +156,12 @@ abstract class ActionController extends Controller return $this->view->tabs; } + protected function setViewScript($name) + { + $this->_helper->viewRenderer->setNoController(true); + $this->_helper->viewRenderer->setScriptAction($name); + } + protected function prepareTable($name) { $table = $this->loadTable($name)->setConnection($this->db());