Helper function for "title tabs", still unhappy with this solution

This commit is contained in:
Thomas Gelf 2014-02-21 10:41:05 +00:00
parent 7ff4f55737
commit 154b4722f5
1 changed files with 8 additions and 0 deletions

View File

@ -473,6 +473,14 @@ class Monitoring_ListController extends MonitoringController
}
protected function addTitleTab($action)
{
$this->getTabs()->add($action, array(
'title' => ucfirst($action),
'url' => Url::fromPath('monitoring/list/' . $action)
))->activate($action);
}
/**
* Return all tabs for this controller
*