mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
ActionController: add viewscript helper
This commit is contained in:
parent
775363e281
commit
2dd694f3ec
@ -156,6 +156,12 @@ abstract class ActionController extends Controller
|
|||||||
return $this->view->tabs;
|
return $this->view->tabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function setViewScript($name)
|
||||||
|
{
|
||||||
|
$this->_helper->viewRenderer->setNoController(true);
|
||||||
|
$this->_helper->viewRenderer->setScriptAction($name);
|
||||||
|
}
|
||||||
|
|
||||||
protected function prepareTable($name)
|
protected function prepareTable($name)
|
||||||
{
|
{
|
||||||
$table = $this->loadTable($name)->setConnection($this->db());
|
$table = $this->loadTable($name)->setConnection($this->db());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user