In Zendframework 1, we use the init() method to initialize an element in the controller. I saw that it is derived from zenframework 2. Why? and what is the best way to achieve the same in zf 2. I am updating my previous project developed in zf1 and I see that in zf2 a lot has changed compared to zf1.
Is there another change in zf2, do they use other methods like preDispatch() and postDispatch() in zf1?
Has anyone gone through this?
source share