Avoiding hard coded dependencies is something the PHP community is still trying to grasp. The use of OOP tools such as interfaces are still making its way into the PHP programmers’ minds. Luckily, Zend Framework 2 makes both approaches possible when it comes to loading modules with the Module class.
By default, the skeleton application in Zend Framework 2 requires you to include the module name in all of your URLs. This can be changed quite easily by making edits to an existing route. After following this tutorial, you will once again have pretty URLs just like in Zend Framework 1.
Getting Apache to work together with Dropbox turns out to be slightly more difficult than most would have anticipated. Adding a virtual host to point directly to a Dropbox folder will only get you a 403 Forbidden error. In this article, we will solve this problem by using symbolic links.
To many people who are used to Zend Framework 1, the process of just installing Zend Framework 2 seems overly complicated. In this tutorial we will step through installing Zend Framework 2 on OS X Lion in just a few minutes.
Keeping form classes together in each module is the preferred way to store them, rather than in the library folder, for instance. Keeping the Zend Framework naming conventions in mind, this is a very easy task.
Using a modular directory structure can logically separate parts of an application. By default, a Zend Framework application does not make use of such a structure, so in this article we shall see how to easily change this.
It is often necessary to add data to form elements from outside of the form. Examples of scenarios where this would be useful include data fetched from a data store or data saved in sessions. In this article, we will discuss two ways of doing this, one of which has several advantages over the other.
In the Zend Framework, there are many ways to add custom routes to a project. Adding them to the application.ini file quickly makes the file very big and harder to maintain. In this article, we will show two ways of writing custom routes in a separate configuration file.
The singleton pattern is one of the most popular and well known patterns in software development. It is extremely simple and yet solves a fundamental and common problem. However, as this article discusses, everything has a cost.
It is not an unusual task to want to set the default values on elements in a form. Zend Framework provides multiple ways of accomplishing this, but as demonstrated in this article, the setDefaults method has surprising behavior.