I have the following code:
public function _setHelpers() {
Zend_Controller_Action_HelperBroker::addPrefix('My_Controller_Action_Helpers');
Zend_Controller_Action_HelperBroker::addPath ( APPLICATION_PATH . '/controllers/helpers' );
}
With this I can add a helper wether in My/Controller/Action/Helpers/Helper.php or /application/controllers/helpers/Helper.php. That is ok, however I need to gave priority to the one in /application/, that is: if I have both helpers load the one in /application and not the one in My/Controller/...
EDITING
I was able to fix this by changing the code to this:
public function _setHelpers() {
$prefix = 'My_Controller_Action_Helpers';
Zend_Controller_Action_HelperBroker::addPrefix ( $prefix );
Zend_Controller_Action_HelperBroker::addPath ( APPLICATION_PATH . '/controllers/helpers', 'My_Controller_Action_Helper' );
return $this;
}
As you may notice, its almost the same, with the difference that when adding the path I added also the prefix. Thanks to all for your help.