Over on his blog, Evan Coury recently released a post titled “Creating a simple view helper in Zend Framework 2″. Since Zend Framework 2 is making serious progress towards being officially released, let’s take a look at what Evan has to show us.
This post will show you how to create a simple view helper in Zend Framework 2.
In this example, our view helper will simply return the full, absolute URL of the current page/request.
That is the largest non-clode block of text in the post. It’s short, it’s sweet and it’s long on the HOW if short on the WHY.
If you are working with ZF2, make sure you check this quick post out, give it a read, and leave Evan a comment telling him what you think.