On Sat, Dec 27, 2008 at 5:12 PM, hukkas <[email protected]> wrote: > > Hi there > > Quick question; > > I've written a custom form element, with an associated view helper. > However, it can't find the view hellper, and as far as I can tell the > addPrefixPath method on Zend_Form_Element is used for validators, decorators > and filters - but not view helpers. Nor can I find an obvious way of > telling the form where to find the view helper. Does anyone know how to go > about this?
If your view helper isn't in the default include path, you will need to add the helper path to your view. The form element uses by default the ViewRenderer helper to get the view. See Zend_Form_Element::getView() also Zend_View_Abstract::addHelperPath() Hope that helps. Regards. -- Rolando Espinoza La fuente Pro Soft Resources Inc. www.prosoftpeople.com
