public function getTabs() { $tabs = parent::getTabs(); $tabs->add('dashboard', array('title' => $this->translate('Dashboard'), 'url' => 'boxydash', 'tip' => $this->translate('Overview'))); $tabs->add('config', array('title' => $this->translate('Configure'), 'url' => 'boxydash/config', 'tip' => $this->translate('Configure'))); return $tabs; }
/** * (non-PHPDoc) * @see \Icinga\Web\Controller\ActionController For the method documentation. */ public function prepareInit() { parent::prepareInit(); if (Hook::has('ticket')) { $this->view->tickets = Hook::first('ticket'); } if (Hook::has('grapher')) { $this->view->grapher = Hook::first('grapher'); } }
/** * @see ActionController::init */ public function init() { parent::init(); $this->createTabs(); }