Hi, guys.
I wrote a helper class (extends Zend_Controller_Action_Helper_Abstract), and
put it in 'wwwroot/zf/application/helpers/', named as MyHelper.
Then I add
'Zend_Controller_Action_HelperBroker::addPath('/zf/application/helpers/',
'MyHelper');' in init() method of my controller class,
and called the helper using '$this->_helper->MyHelper($help);', but error
occurred showing 'cannot find the helper'.
I tried path './application/helpers/' also, but failed.
I think it's a path error but how should I set the path? Or should put My
Helper in the same folder as the default ? Or should put the helper
registration in bootstrap file?
Could anybody answer my question?!
Thanks!
--
View this message in context:
http://www.nabble.com/Problem-with-ZF-helper-tf4168559s16154.html#a11859580
Sent from the Zend Framework mailing list archive at Nabble.com.