Sharing Zend Helpers (view or action) Between Modules

nicesitess

New Member
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.\[code\]class Modulea_Zend_View_Helper_Ouput extends Zend_View_Helper_Abstract{ function output($var) { echo strip_tags($var); return true; }}\[/code\]If I attempt to use this helper from a view in Module "B"\[code\]File: moduleb/views/scripts/index/index.phtml<?php $this->output($somevar); ?>\[/code\]I get an exception \[quote\] Plugin by name 'Output' was not found in the registry\[/quote\]What's the "right" was to use the view helper Output from Module B.
 
Back
Top