Assuming you're trying to keep yourself as close as possible to the Zend Framework view of the universe, how should view and action helpers from one module be shared with another module?
Let's say I have an with two modules. Module "A" has a view helper named Output.
class Modulea_Zend_View_Helper_Ouput extends Zend_View_Helper_Abstract
{
function output($var)
{
echo strip_tags($var);
return true;
}
}
If I attempt to use this helper from a view in Module "B"
File: moduleb/views/scripts/index/index.phtml
<?php $this->output($somevar); ?>
I get an exception
Plugin by name 'Output' was not found in the registry
What's the "right" was to use the view helper Output from Module B.