params->shift('host'); $query = Host::on(IcingaDbObject::fetchDb()); IcingaDbObject::applyIcingaDbRestrictions($query); $query->filter(Filter::equal('host.name', $hostName)); $host = $query->first(); $this->params->add('name', $hostName); if ($host !== null) { $this->redirectNow(Url::fromPath('icingadb/host')->setParams($this->params)); } $this->getTabs()->disableLegacyExtensions(); $this->view->host = $hostName; $this->view->tabs = null; // compatController already creates tabs $this->addContent(HtmlString::create($this->view->render('ido-host/show.phtml'))); } }