2008年9月3日星期三

[fw-mvc] custom view helpers don't work anymore in zf 1.6

Hey,

I just tried the zend framework 1.6 release this morning and I can't figure
out why I have this exception:

Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin
by name MyCustomHelper was not found in the registry.

I only replaced the old zend folder by the new one in my library directory.
No code change.

Any idea?


Despite the exception Message, the problem comes from my customs view
helpers. Why my view helpers don't load correctly anymore?

Here is the code ( working in the 1.5 release)

$view->addHelperPath(array(self::$root .
'/application/view/helpers',self::$root .
'/library/MyZend/View/Helper'),'MyZend_View_Helper_');

class MyZend_View_Helper_MyCustomHelper{
public myCustomHelper($param)
{ ... }
}


Thanks,

Benjamin.F

(cross-posted on zfforums)
--
View this message in context: http://www.nabble.com/custom-view-helpers-don%27t-work-anymore-in-zf-1.6-tp19293547p19293547.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: