From 154b4722f505b85f57acfa9bfa28b583578271c3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 21 Feb 2014 10:41:05 +0000 Subject: [PATCH] Helper function for "title tabs", still unhappy with this solution --- .../monitoring/application/controllers/ListController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index d3e5cb4ca..f1beccee5 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -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 *