CHAPTER 10
Models
Up until now, we have created classes and libraries that form the foundation of our framework, but that aren’t particularly concerned with how applications will use them. All that is about to change.
As I mentioned before, calculation is nothing without data to calculate on. Most projects you will work on have one thing in common: they need to store, manipulate, and return and display data. You can achieve this with the use of a database.
In Chapter 9, we learned how to create an extensible database library, and wrote a MySQL connector/query class pair. Talking directly to the database is one way to get the job done, but it ...
Get Pro PHP MVC now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.