Sunday 15 March 2015

php - Zend Framework - Getting a helper from within a registered plugin -


Is there a way to access a support group from within a registered plugin? From within the controller, anyone can use:

  $ this-> _helper-> GetHelper ($ helperName);  

Specifically, before we do a redirect, we use Flash Messenger Assistant to pass error and information messages around different pages. In one of our plugins, we log out a user and set the index and controller on a separate page. We can manually set a value in the request, but it seems that what is used for FlashMessenger and for that we have to do it for this special case.

You should use this to get a helper anywhere outside the controller. See similar questions:


No comments:

Post a Comment