php - What should the "model" be? -


Firstly I had the impression that this is the class for a single database record.

Then I thought it represents a collection, like a class that chooses questions and manages records.

Then I read an answer here that the model should be just a folder in which there is a bunch of orbits.

So what's that?

If any of them are actually a simple application that only queries the database And shows the result somewhere, then the database model can be. If you have a complex application that does some stuff with data, it validates it, it changes it, sends events on the change, or just says a lot to write a very large query at that place, Want to use, you should use the Manager category.

Another way to see this is that the main application of this model app is that the design does not include any user interface, you should provide an easy way to communicate in the main part of your app. If the plain database is sufficient, then it is enough.

He said that I think that it is not really possible that the database will be sufficiently anything different than a "list" should be an appropriate model with proper sections in this table and the database is stored in a storage Should be in the form of provider in which high performance search engine is built in it.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -