MVC pattern (Model View Controller) is one of the most confusing parts when you are starting using Codeigniter for the first time after working on simple PHP projects. That’s why at this tutorial we are going step by step learning MVC starting without even using Codeigniter just to understand some basics. On the other hand once you’ve learned it everything seems so easy and natural by using it.
At this tutorial we are focusing on examples of the MVC pattern and at the same time we are trying to have a complete blog in Codeigniter 4. It is very important also to not forget the Routes as it is the main file that is communicating with our Controller directly!
Timestamps:
0:00 Intro - What is MVC?
0:42 Simple PHP example (without Codeigniter)
4:14 Routes and Controllers in Codeigniter
9:23 Models in Codeigniter
12:10 Views in Codeigniter
15:00 Tidying up and complete our blog
17:14 Outro - Thank you! 🙏