Mike, I just need to prefix your view helper class name with Zend_View_Helper_ as indicated in the list of helper paths. It doesn't have to extend Zend_View_Helper_Abstract if you don't want to.
If you still can't get it to work, please provide the actual error message you're getting, and stack trace too as I am unfamiliar with a "unknown application error". Konr On Mon, Dec 19, 2011 at 11:44 AM, Mike Wright <[email protected]> wrote: > Hi all, > > I can use Zend_View_Helper scripts. I can also use my own namespaced > Mnb_View_Helper scripts. What I can't figure out is how to use "local" view > helpers. > > Standard layout (using zf-1.11): > > APPLICATION_PATH/views/filters > /helpers <------ > /scripts > > $this->getHelperPaths() > array( > ['Zend_View_Helper_'] => array( > [0] => 'Zend/View/Helper/' > [1] => APPLICATION_PATH . '/views/helpers/' <-------- > ) > ['Mnb_View_Helper_'] => array( > [0] => 'Mnb/View/Helper/' > ) > ) > > ...shows all the paths where helpers can be found but when I try to use a > helper in ...views/helpers I get unknown application error. > > How do I use those? Is there a special way to refer to them? Must they be > an extension of Zend_View_Helper? > > TIA for any and all help, > Mike Wright > > -- > List: [email protected] > Info: http://framework.zend.com/archives > Unsubscribe: [email protected] > > -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
