MVC Model on PHP is responsible for data manipulation. PHP Singleton pattern makes sure you have only one instance of the object from one class. We will make one model based on the Active Record / ORM pattern, and use Singleton to make sure we only have one database connection. We will explain model more in future videos, as well as Active Record, ORM and other modern methods, so make sure you subscribe to be notified when new videos come.
This is the sixth lesson in full php mvc tutorial/course for beginners who are familiar with php basics and are starting with oop concepts.
You can learn Object Oriented Programming principles by coding along on this project, as we build one Content Management System using modern OOP patterns.
We show the problem and then show when and how we can benefit from OOP solutions.
Interested in learning real-life PHP design patterns?
➡️ https://www.ApplicableProgramming.com/
Join our Facebook group to follow the news and join discussion
➡️ / applicableprogrammers
or discord group if that is more your thing
➡️ / discord
➤ LINKS
➡️ Playlist for entire CMS: • 1. Build a CMS using OOP PHP tutorial...
➡️ SOURCE: https://github.com/applicable-program... (use tags to navigate between lessons)
➡️ Other tutorials: www.ApplicableProgramming.com
If you are interested in programming courses related to web, please visit https://www.ApplicableProgramming.com/ to view courses where we show the problem, then we try to solve it the hard way, and then we show how we can benefit from proven solutions.
Intro (0:00)
Database connection (2:00)
Problem (8:55)
Singleton Theory (11:55)
Singleton Solution (16:44)