Installing nginx on OS X Yosemite

December 17, 2014 by

As always, there are many ways to accomplish this. My approach is based on Homebrew and assumes that you have it installed. If not, then the first thing you have to do is to install it. Installing nginx on OS X To install nginx, simply open up the Terminal and enter the following command. brew… read more

ZF2: Accessing View Helpers in Controllers

July 4, 2014 by

Generally speaking, view helpers should not be used within controllers, as the name suggests. Certain situations may, however, require one to do so. This article shows you just how to do that by fetching the view helper manager from the service manager. It is actually very simple. public function someAction() { $userData = ‘User data… read more

Adding Query Parameters with ZF2 URL Helper

June 12, 2014 by

In a view script in Zend Framework 2, one may need to generate an URL for a given route that includes one or more query parameters. For instance, when browsing through a paginated data set, one may want a form’s action attribute to point to the current page, such that the user will end on… read more

How to use DocBlock Templates in PHPDoc

March 12, 2014 by

Sometimes one has several variables that are related – typically in a class – and one wants to document them with PHPDoc. Defining the same type and perhaps description for each of these variables or constants can be tedious and result in a lot of redundant documentation. Luckily, PHPDoc provides a way of documenting multiple… read more