Category: Zend Framework

This article shows how to use the URL view helper in Zend Framework 2 to build URLs to child routes. It furthermore discusses a quite useful feature of the view helper in order to reuse matched route parameters when building an URL.

Read More ZF2 URL View Helper and Child Routes

Zend Framework

If you wish to use a secure connection when sending e-mails via an SMTP server in Zend Framework 2, then this article shows you how to do this. The official documentation comes to no avail, but luckily the solution is extremely simple.

Read More Use SSL or TLS with SMTP in ZF2

Zend Framework

Clearing a form’s data was easy and convenient in Zend Framework 1. Apparently it is not as easy in Zend Framework 2, so this article gives a few suggestions on how it can be accomplished.

Read More Clear Form Data in ZF2

Zend Framework

Validating a single form element rather than an entire form can be useful in many situations. This task used to be very trivial in Zend Framework 1, but is slightly more complicated in Zend Framework 2. This article explains how to accomplish this in a fairly simple way.

Read More Validate Single Form Elements in ZF2

Zend Framework

One of the most central concepts of Zend Framework 2 is the Module Manager. This article gives an overview of how it works and discusses how autoloading is used to simplify the code within modules.

Read More Zend Framework 2 Module Manager

Zend Framework

This article walks through how to create a view helper in Zend Framework 2. It is a step by step guide which will create a view helper used for building links to static resources that reside on a subdomain. This is particularly useful when using a Content Delivery Network (CDN).

Read More Custom Zend Framework 2 View Helper

Zend Framework

The Service Manager in Zend Framework 2 is much more than a registry of key-value pairs. This article walks through the Service Manager’s many features and gives examples of how to use each one.

Read More Zend Framework 2 Service Manager

Zend Framework

This article is meant as an introduction to Zend Framework 2’s event system. It begins by giving an introduction to the concepts of the event system and further discusses the event manager. Examples of how to attach event listeners and how to trigger events are also provided.

Read More Zend Framework 2 Event Manager

Zend Framework

This article gives an introduction on how to use sessions in Zend Framework 2. As it turns out, it is actually very easy. Information on what happens behind the scenes is also provided, so if you are the kind of person who likes to know the details, then this article is also for you.

Read More Using Sessions in Zend Framework 2

Zend Framework

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.

Read More Eliminating Module Dependencies with Interfaces in ZF2

Zend Framework