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
This commit is contained in:
Johannes Meyer 2019-07-17 10:00:34 +02:00
parent bc2e7588d7
commit 115bb80c6a
1 changed files with 3 additions and 0 deletions

View File

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