News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Using Action Helpers in Zend Framework
October 31, 2008 @ 10:20:06

Rob Allen has made a new post today showing off Action Helpers in the Zend Framework.

When you have some functionality that needs to be shared across multiple controllers, one method is to use action helpers. Action helpers are very powerful and contain hooks to automatically run when you need them too, but you can ignore all that if you don't need it.

He includes how to set up the "helper broker" pointing it at your helper files and a simple helper that multiplies the input times two. This helper is then applied inside of his example action (in an IndexController, of course) and assigned to an output variable in the view. He's included a code download as an example.

0 comments voice your opinion now!
action helper zendframework tutorial example download


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Zip-it or DIY Tar-balls

PHPBuilder.com: Use Dice for Simplified PHP Dependency Injection

Eran Galperin's Blog: Multiple row operations in MySQL / PHP

DevShed: Creating the Blog Script for a PHP/MySQL Blogging System (Part 2)

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Unit Testing in Zend Framework 1.8


Community Events

Don't see your event here?
Let us know!


interview development extension api community unittest language laravel laravel5 series introduction release middleware voicesoftheelephpant wordpress framework conference opinion podcast library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework