PHPBuilder - Use Zend Framework Action Helpers to Reduce PHP Code Redundancy Page 2



RSS Twitter
Articles Tools

Use Zend Framework Action Helpers to Reduce PHP Code Redundancy - Page 2

by: W. Jason Gilmore
|
September 14, 2010

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();
Conclusion
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".

« Previous Page
1
|
2

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
W. Jason Gilmore

Comment:



Comment:

(Maximum characters: 1200). You have characters left.