When Zend Framework 2 was officially released, I wanted to learn it on practical example. So, I decided to use it as a foundation for my new blog engine. Because it is very simple application (just a few classes), I was able to build it pretty easily.
This is first post of short series where I will describe how common problems are solved in ZF2. I will always compare it with similar code written in ZF1-style.
First I'm going to describe some common tasks that you usually do in your controllers: handling input parameters and accessing application services.