Monitoring\Controller: add $url to all views
There are too many view scripts fiddling with namespaces. There is still the url helper, not sure why it's not going to be used. I may roll this back one far day...
This commit is contained in:
parent
ecf84077e5
commit
ccb01aa152
|
@ -30,6 +30,7 @@
|
|||
namespace Icinga\Module\Monitoring;
|
||||
|
||||
use Icinga\Web\Controller\ActionController;
|
||||
use Icinga\Web\Url;
|
||||
use Icinga\File\Csv;
|
||||
|
||||
/**
|
||||
|
@ -57,6 +58,7 @@ class Controller extends ActionController
|
|||
protected function moduleInit()
|
||||
{
|
||||
$this->backend = Backend::createBackend($this->_getParam('backend'));
|
||||
$this->view->url = Url::fromRequest();
|
||||
}
|
||||
|
||||
protected function handleFormatRequest($query)
|
||||
|
|
Loading…
Reference in New Issue