I was wondering what is the difference between
init() functions in a PHP application, more particularly in a Zend Framework application.
init() is called by the constructor.
init() isn't defined in the specification of PHP, it's only a method available with the Zend Framework to help initialize without having to rewrite the constructor yourself.
On the same topic :
- Zend Framework: What are the differences between init() and preDispatch() functions in controller objects?