icingaweb2-module-director/application/controllers/CustomvarController.php

18 lines
564 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ActionController;
use Icinga\Module\Director\Web\Table\CustomvarVariantsTable;
class CustomvarController extends ActionController
{
public function variantsAction()
{
$varName = $this->params->getRequired('name');
$this->addSingleTab($this->translate('Custom Variable'))
->addTitle($this->translate('Custom Variable variants: %s'), $varName);
CustomvarVariantsTable::create($this->db(), $varName)->renderTo($this);
}
}