I'm trying to show information about user in my Zend Framework application. I'm using one layout script for all controllers (except login controller). And now I want to show information about logged in user (this layout is used only on controllers with logged in users).
I want to separate logic of retrieving user information into some object and view script that will render information. So that in future I could change one of these parts independently.
So the question is what is the best way to achieve this?