2: Simple Explanation Of The MVC Model | OOP PHP Tutorial | Learn OOP PHP

Simple Explanation Of The MVC Model | OOP PHP Tutorial | Learn OOP PHP. In this PHP tutorial I will give a simple visual explanation of the MVC model in OOP PHP.


First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/oop-php-2-lesson-16326837


Marcon Sibal says:

Hi, this is a helpful video on how each part works but I can’t help noticing the flow of the diagram (Website -> C -> M -> V -> Website). From my experience the controller talks to the model then the model does the database transaction and hands the result back to the controller. The controller may process the information from model before handing the information to the view. (Website -> C -> M -> C -> V -> Website)

Again this is a helpful video explaining how each part works!

mahad asif says:

Please develop a website with code igniter.. please make tuts on code igniter

Game Tech says:

can you create a login and sign up form using mvc?

Chirath Uralagamage says:

Best MVC explanation ever. Your OOP PHP tuts are the best. Just wondering if you have video or can you make one on how to build a PHP website using the MVC model (how the directories and files work, routing etc. )

sjoyce100 says:

This is explanation is bullshit because the customer can’t interact with ’employee View’ he can only ask employee Controller for information.

Alex Frade says:

This is the ONLY correct video tutorial on MVC, valuable information, as usual.

Surin Farmwest says:

What a brilliant explanation, so simple to understand!

viquar ahmed says:

Hi Daniel
if i donate $10 per month will i have access to all your materials?
and while donating with my paypal account it showing error “PayPal cannot process your payment. Please contact the merchant to solve this issue”??
Do you have any idea on this error.
waiting for your reply

Maiky Jolling says:

Hi, you are the best teacher i ever had! Can i donate to you for all the free lessons?

Cymburyo Ox says:


MovieHeretic says:

Finally someone who can actually explain in everyday terms how this stuff works.

Mahfuz Sozeeb says:


Unknown and legendary says:

This is very good !

mihai7best says:

My whole life was a lie?

I mean I knew that if a user search for something , the Controller takes care of the request , “ask” for information the Model which is the DB , and the Model respond ONLY to the Controller , which tells the View “Ok I found this so give the user this”.

I knew that Controller is the Middle Man and the Model and the View never communicate, only the Controller communicate with the Model and the View.

Please correct me if I’m wrong

Yasir Ayad says:

Thank you ♥

Cent Ci says:

man you are the best of all.

Clever Techie says:

Well explained.

sairusx gelonio says:

Can you give us a nice example of from beginner to advance of mvc very nice explanation

Pak Home says:

so now, i am customer and u are view and youtube is controller and model is internet

Артем Волков says:

Thank you for the lesson, very helpful

zyyofficial says:

This is the best explanation ever!!!!

Finn Neraz says:

I’m looking forward next episode! Nice tutorial

Hideo Fuku says:

I have a question. The way our teacher explained MVC is actually a bit different:

the model contains the representation of actual objects its logic and controlls it in a self sufficient way, including queries on the database.

The view only handles user interaction. So regarding PHP just consists of outputting values of variables and HTML.

The controller handles the communication between the view and the model classes.

There is no direct communication between the model and the view and only the main controller knows everything.

slapmyfunkybass says:

Really well explained.

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours