From bee4bf82bcf2cc61a803310ea557cb2633d7e021 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:27:46 +0200 Subject: Adding upstream version 1.1.0. Signed-off-by: Daniel Baumann --- library/Pnp/Web/Controller.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 library/Pnp/Web/Controller.php (limited to 'library/Pnp/Web/Controller.php') diff --git a/library/Pnp/Web/Controller.php b/library/Pnp/Web/Controller.php new file mode 100644 index 0000000..4af5c06 --- /dev/null +++ b/library/Pnp/Web/Controller.php @@ -0,0 +1,27 @@ +getTabs()->add('pnp', array( + 'label' => $this->translate('PNP'), + 'url' => 'pnp', + )); + } + + protected function setViewScript($name) + { + $this->_helper->viewRenderer->setNoController(true); + $this->_helper->viewRenderer->setScriptAction($name); + } + + protected function getBaseUrl() + { + return rtrim($this->Config()->get('pnp4nagios', 'base_url', '/pnp4nagios'), '/'); + } +} -- cgit v1.2.3