I've created a helper module (Navigation.php) that will read some data from a database and return it. So I created the helper, and placed it in its proper place in my directory structure:
Code:
+ /application
+ controllers
+ layouts
+ models
+ views
+ /httpdocs
+ /library
+ EHS
+ Navigation.php
So in my bootstrap.php file I've tried to add the path to my project like so:
PHP Code:
Zend_Controller_Action_HelperBroker::addPath('EHS/Helpers', 'EHS_Helpers');
Then, inside my controllers I try to get the helper like so:
PHP Code:
$this->navHelper = $this->getHelper('Navigation');
Needless to say, there's an issue somewhere. When I visit my site, it claims that it can't find "Navigation" as a helper. I've tried almost every possible variation of the getHelper() I can including:
Navigation
Navigation.php
EHS/Helpers/Navigation
I've also tried changing the directory structure to be Ehs/Helpers and that didn't help.
Is there something I'm missing? I've got this set up the exact same way in another project (running off the same server) and yet one works and this one doesn't. Anyone have any ideas?