diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index aa6c859d..d1de32c6 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -90,6 +90,17 @@ abstract class ActionController extends Controller $this->sendJson((object) array('error' => $message)); } + protected function singleTab($label) + { + return $this->view->tabs = Widget::create('tabs')->add( + 'tab', + array( + 'label' => $label, + 'url' => $this->getRequest()->getUrl() + ) + )->activate('tab'); + } + protected function setConfigTabs() { $this->view->tabs = Widget::create('tabs')->add(