hello I am using zend framework and i am trying to combine it with doctrine. Not the hardest thing to do but what I wanted to do is a class with a static member that will be the entity manager and I want to create it just ONCE in THE WHOLE APPLICATION CONTEXT.
When I was playing with static variables in php to learn how it works in order to do what I want I realize that php creates a new instance of a static variable in each request. So the static variable only remains static through the request not the entire application is that correct, can someone tell how to do static variables for the whole application no matter the request that came to the server.
thanks