By piccoloprincipe
via mwop.net
Submitted: Jul 31 2012 / 07:57
In Zend Framework 1, controller's had an init() method, which was called after the controller was instantiated. The reason for it was to encourage developers not to override the constructor, and thus potentially break some of the functionality (as a number of objects were injected via the constructor). init() was useful for doing additional object initialization.
Add your comment