Access controller from action helper

Is it possible to access controller from action helper?

class Zend_Controller_Action_Helper_UserLimit extends Zend_Controller_Action_Helper_Abstract
{
    public test()
    {
        $this->getController(); // get controller which initiated the helper
    }
}

Answers


Yes, it is possible:

$controller = $this->getActionController();

Need Your Help

How to invoke external apps from my Codename One app

facebook social-networking codenameone

I have developed an app for organizing and grouping of hashtags. One functionality I want to add to this app is the following: The user can copy his/hers tags and then should be able to switch to the