init method in zf2 controller

Viewed 9475

In Zendframework 1 we use init() method for initialize stuff in controller. I saw that this is taken out from zenframework 2. Why? and what is the best way to achieve same thing in zf 2. I am upgrading my previous project developed in zf1 and I can see things has changed a lot in zf2 as compare to zf1.

Is there anyother change in zf2, they way we use other methods such as preDispatch() and postDispatch() in zf1?

Anyone has gone through this?

3 Answers
Related