Evan Coury posts on “Creating a simple view helper in Zend Framework 2”

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.

About Cal Evans

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PCs. For the past 10 years, Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is happily married to wife 1.32, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Nomad PHP