zend-framework, call an action helper from within another action helper

前端 未结 5 1658
耶瑟儿~
耶瑟儿~ 2020-12-31 02:06

i am writing an action helper and i need to call another action helper from within that helper. but i dont know how. here in the sample code:

class Common_Co         


        
5条回答
  •  离开以前
    2020-12-31 02:30

    In addition to mercator's answer, add your method after, see example below:

    Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger')->myMethod();
    

提交回复
热议问题