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:
Thomas Gelf 2014-06-20 12:26:00 +02:00
parent ecf84077e5
commit ccb01aa152
1 changed files with 2 additions and 0 deletions

View File

@ -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)