Hi I would like to call a method at the end of a page generation using Zend Framework. How to do this?
I am using Doctrine2 + ZF. The EntityManager has a flush method, which should in the common cases only be called at the end of the page generation. Is there a hook or a destructor emulation in Zend Framework? 2