ZF-9604: Action helpers with PHP namespaces do not work
Description
The issue is Zend_Controller_Action_HelperBroker::getHelper().
I think the helper is stored in the stack as "Namespace\MyHelper", and then the code tries to access it from the stack using the name "MyHelper", i.e., without the namespace.
Comments
Posted by Wil Moore III (wilmoore) (wilmoore) on 2010-11-21T02:44:13.000+0000
Actually, the problem is Zend_Controller_Action_Helper_Abstract#getName.
It assumes only "_" in the name but doesn't consider names with "\".
If you extend Zend_Controller_Action_Helper_Abstract and override getName(), your helpers will work. I've been using the following:
BTW, the fix for issue ZF-10158 corrects this: http://framework.zend.com/issues/browse/ZF-10158
That being the case, this issue should be moved or closed.
Posted by Ramon Henrique Ornelas (ramon) on 2010-12-18T12:55:48.000+0000
Fixed with the issue ZF-9604.