ActionController: add viewscript helper

This commit is contained in:
Thomas Gelf 2016-03-20 11:19:16 +01:00
parent 775363e281
commit 2dd694f3ec
1 changed files with 6 additions and 0 deletions

View File

@ -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());