icingadb-web/application/controllers/HostsController.php
2019-09-09 14:46:56 +02:00

23 lines
473 B
PHP

<?php
namespace Icinga\Module\Eagle\Controllers;
use Icinga\Module\Eagle\Model\Host;
use Icinga\Module\Eagle\Web\Controller;
use Icinga\Module\Eagle\Widget\HostList;
class HostsController extends Controller
{
public function indexAction()
{
$this->setTitle($this->translate('Hosts'));
$db = $this->getDb();
$hosts = Host::on($db)->with('state');
$hostList = new HostList($hosts);
$this->addContent($hostList);
}
}