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:
parent
bc2e7588d7
commit
115bb80c6a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue