O'Reilly logo

Zend Framework 1 to 2 Migration Guide by Bart McLeod

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Zend Framework 2 Overview

For this migration guide, I will assume that you are using ZF1 as an MVC application (more about MVC in the next chapter) and that you also intend to use ZF2 that way.

Less Magic

The way MVC has implemented changes in ZF2, there is less magic going on. Many things that happened magically in ZF1 are carried out explicitly in ZF2. An example of this is how your application loads its view helpers. In ZF1, if you put them in the helpers directory, under your views directory, the application would auto-magically find them. In ZF2, you have to tell the application how to create your view helpers by configuring each one explicitly. In short, magic has been replaced by configuration.

Modular

ZF2 is built around the concept ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required