From 115bb80c6a0798600e1943304b718470b70cb838 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 17 Jul 2019 10:00:34 +0200 Subject: [PATCH] View: Register our own view helper path That's a different path than application/views/helpers because this one uses a namespace so that we're able to extend Zend's view helpers --- library/Icinga/Web/View.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Icinga/Web/View.php b/library/Icinga/Web/View.php index 2d5bb4cc3..bec17b3ed 100644 --- a/library/Icinga/Web/View.php +++ b/library/Icinga/Web/View.php @@ -4,6 +4,7 @@ namespace Icinga\Web; use Closure; +use Icinga\Application\Icinga; use Zend_View_Abstract; use Icinga\Authentication\Auth; use Icinga\Exception\ProgrammingError; @@ -92,6 +93,8 @@ class View extends Zend_View_Abstract } } + $config['helperPath']['Icinga\\Web\\View\\Helper\\'] = Icinga::app()->getLibraryDir('Icinga/Web/View/Helper'); + parent::__construct($config); }