Skip to content

Commit

Permalink
SpecialController: allow to link special pages
Browse files Browse the repository at this point in the history
fixes #39
  • Loading branch information
Thomas-Gelf committed Mar 11, 2020
1 parent 4565b4b commit 13a50ef
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions application/controllers/SpecialController.php
@@ -0,0 +1,27 @@
<?php

namespace Icinga\Module\Pnp\Controllers;

use Icinga\Module\Pnp\Web\Controller;

class SpecialController extends Controller
{
public function indexAction()
{
$url = $this->getRequest()->getUrl();
$queryString = $url->getQueryString();

$this->view->url = \sprintf(
'%s/special?%s',
$this->getBaseUrl(),
$queryString
);

$this->getTabs()->add('special', [
'label' => $this->translate('Special'),
'url' => $url,
])->activate('special');

$this->setViewScript('index/iframe');
}
}

0 comments on commit 13a50ef

Please sign in to comment.