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;
|
||||
}
|
||||
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue