I read some questions related to what I'm going to ask, but I could not figure it out. Let the revision together:
- Models are classes that manage data from and from a database. Therefore, they relate to classes associated with the database.
- View is part of the HTML. Mostly page layout.
- The controller is a logical part of the application and uses models, receives / gives input / output from / to the view.
Wonderful. What if I have to use a class that is not related to the database. Like a class for sessions, a class of templates, or a class of pure logic that help me with some common logic function that I use. Where should these classes go? Are they a model or just library classes?
source share