diff --git a/application/controllers/HostgroupsController.php b/application/controllers/HostgroupsController.php new file mode 100644 index 00000000..afc5b945 --- /dev/null +++ b/application/controllers/HostgroupsController.php @@ -0,0 +1,33 @@ +setTitle($this->translate('Host Groups')); + + $db = $this->getDb(); + + $hostgroups = Hostgroupsummary::on($db); + + $limitControl = $this->createLimitControl(); + $paginationControl = $this->createPaginationControl($hostgroups); + $filterControl = $this->createFilterControl($hostgroups); + + $this->filter($hostgroups); + + yield $this->export($hostgroups); + + $this->addControl($paginationControl); + $this->addControl($limitControl); + $this->addControl($filterControl); + + $this->addContent(new HostgroupList($hostgroups)); + } +}