Wayne May - 2009-07-22 18:35:52
I have been programming in PHP for over 6 years now. About two years ago I had to switch to .NET 2.0 for work reasons. I am back, developing in PHP and I a question that's been bugging me for a while.
When I develop a class in PHP (lets say, a class for Members), should the class make a database connection to get information about a member? Or should the class simply act as a container with the variables and some essential functions for that member?
Which works best?