Executing an Action Helper
With the action helper created and configured, you can begin using it within your controller actions. The action helpers will be attached to the Zend Framework’s helper broker:
$confirmationKey = $this->_helper->generateID();
As demonstrated in this article, action helpers can go a long way towards reducing the amount of code that must be redundantly placed throughout an application, allowing you to easily update and refactor this code as needed throughout the application’s lifecycle. Perhaps in the future the Zend Framework community will work towards producing a universal action helper repository akin to PEAR!
About the Author
Jason Gilmore is the founder of WJGilmore.com and the author of several popular books, including “Easy PHP Websites with the Zend Framework”, “Easy PayPal with PHP”, and “Beginning PHP and MySQL, Third Edition”.