Php oop MVC design - proper architecture for an application to edit data?

I'm not an expert at this but have recently done pretty much exactly the same thing. The way I set it up is that I have one class for several rows ( Users ) and one class for one row ( User ). The "several rows class" is basically just a collection of (static) functions and they are used to retrieve row(s) from a table, like so.

The level of abstraction you need for your processing and data (Business Logic) depends on your needs. For example for an application with Transaction Scripts (which probably is the case with your design), the class you describe that fetches and updates the data from the database sounds valid to me.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions