O'Reilly logo

Zend Framework 1 to 2 Migration Guide by Bart McLeod

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controller Plugins & Translations

Action Helpers

Action helpers were not widely used in ZF1. I have seen several applications that didn’t implement any action helpers when they could have. An action helper should not be confused with Zend_View_Helper_Action, the latter being a view helper that calls an action on a controller.

Action helpers were a means to share code snippets, a bit like traits, between controllers, that had little in common otherwise. One of the things that kept me puzzled while learning ZF2 was, “Where did the action helpers go?” The answer is that they are now called Controller Plugins, and they are surprisingly easy to implement, configure, and use.

Before you look at implementing your own controller plugin, make sure to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required