From 24c60995d9e1aa369cf072b6900c3e84fbda74e4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 9 Sep 2019 14:46:56 +0200 Subject: [PATCH] Add controller for hosts --- application/controllers/HostsController.php | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 application/controllers/HostsController.php diff --git a/application/controllers/HostsController.php b/application/controllers/HostsController.php new file mode 100644 index 00000000..f344c07a --- /dev/null +++ b/application/controllers/HostsController.php @@ -0,0 +1,23 @@ +setTitle($this->translate('Hosts')); + + $db = $this->getDb(); + + $hosts = Host::on($db)->with('state'); + + $hostList = new HostList($hosts); + + $this->addContent($hostList); + } +}