18: Apply The MVC Model Using OOP PHP | MVC Model Tutorial | Object Oriented PHP Tutorial

18: Apply The MVC Model Using OOP PHP | MVC Model Tutorial | Object Oriented PHP Tutorial

Dani Krossing

4 года назад

129,209 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

jcarney1987
jcarney1987 - 30.07.2023 08:44

Great content, I understand about 80% of everything. Only issue I've found is your Class auto loader doesn't work on Linux as Linux and Unix are case sensitive and windows isn't. So either have to modify the auto loader or name your class files of how you name your class in php. You have inspired me to stop what I'm doing now and rewrite all my code in OOP. My current Procedural code is very messy, especially since all my functions are written in a functions.php file.

Ответить
utilizator500
utilizator500 - 26.04.2023 22:44

Super mage giga chad tutorial

Ответить
Gundo
Gundo - 23.04.2023 16:16

GOLD

Ответить
Mmeli Mahlobo
Mmeli Mahlobo - 18.04.2023 22:09

You the best at least for me thank you very much

Ответить
Rapid Cyclist
Rapid Cyclist - 27.02.2023 12:21

Hi, I'm currently trying to implement a CRUD application based on this tutorial, am confused about the form's action=" " which class should I refer to?

Ответить
miguelito
miguelito - 28.01.2023 12:45

Hey is it not necessary to include the database connection file when you decide to use it to extend a class?

Ответить
Andy Von M. Simbajon
Andy Von M. Simbajon - 06.01.2023 05:06

Well explained ! Thankyou

Ответить
ObePawnKenobi
ObePawnKenobi - 15.12.2022 21:00

Did you ever do the tutorial referred to at the very end of this video? It seems to be 18 videos long with no 19.

Ответить
Petrus Mattias Dughem
Petrus Mattias Dughem - 07.12.2022 17:44

Very good! Thank you!

Ответить
Sohbetmuhammet Geldinazarow
Sohbetmuhammet Geldinazarow - 28.10.2022 21:15

Great tutorial.I think you also need to add here a small video explaining traits too.

Ответить
Hayat Zee
Hayat Zee - 05.10.2022 12:55

Amazing explanation of the MVC model, please don't stop teaching!

Ответить
Arshia Tolou
Arshia Tolou - 02.10.2022 22:36

Tysm perfect tutorial! but i've got a question? So in the ShowUser() method why did we put this [0] before Column name. To be clear you wrote $results[0]['first_name']. what's the reason behind that [0] thing. I actually wrote the same code without [0] and the browser threw me an error. i'm a little bit confused here sir could you explain please?

Ответить
shal
shal - 10.09.2022 07:23

u seem like elon musk

Ответить
Zahra Ali
Zahra Ali - 22.08.2022 23:52

oh I was born on 11th may 😂 thanks for the great information

Ответить
express Incorperated
express Incorperated - 11.07.2022 08:54

Please do you have an RESTFUL API tutorial

Ответить
express Incorperated
express Incorperated - 10.07.2022 17:05

Lots and lots of respect. 18 episodes 5 days. I have never understood OOP concept until i came across your tutorials. Thank you.

Ответить
semantixpt
semantixpt - 28.06.2022 21:56

this was great, thanks! now, where's the next episode? are you ok?

Ответить
POGER
POGER - 22.06.2022 17:55

Dani you're the boss in the bitch!

Ответить
Camera Coverage
Camera Coverage - 18.06.2022 07:08

What if I want to use JavaScript Ajax?

Ответить
Asifur Rahman
Asifur Rahman - 31.05.2022 18:48

Thank you so much for your comprehensive tutorial

Ответить
Snnopy
Snnopy - 31.05.2022 09:51

You did nailed it but i still dont have an idea how to implement that in my code

Ответить
Örjan Hansson
Örjan Hansson - 14.05.2022 17:26

Awsome serie!!

Ответить
Norman Love
Norman Love - 12.03.2022 16:14

Thanks for the OOP Episodes Dani. I am grateful I got to watch them and learn. I will check out your game Dev stuff soon. Blessings 🙏

Ответить
Kicks Me
Kicks Me - 24.01.2022 17:47

Hi guy!
I followed all your steps but but didn't work for me while calling or creating the instance obj ($obj = new UserModel();
Fatal error: Uncaught Error: Class 'Dbh' not found in C:\xampp\htdocs\mvcphp\Classes\user.class.php:2 Stack trace: #0 C:\xampp\htdocs\mvcphp\Views\user.view.php(4): include() #1 {main} thrown in C:\xampp\htdocs\mvcphp\Classes\user.class.php on line 2

Ответить
David Ma
David Ma - 17.01.2022 19:24

Wow your explanation is so clear. So many concept you've successfully simplify without sacrificing the actual functionality. I'm definitely rooting for you :)👏👏

Ответить
raymond tan
raymond tan - 21.12.2021 04:36

nice video.

Ответить
Adjetey Charlton Adiei
Adjetey Charlton Adiei - 20.12.2021 04:13

What book do you advice for a beginner in php I want to learn how to code better not just hello word and I want to know everything about data arrays and object and mvc and all of it please I need help from the senior developers

Ответить
Amr Ibrahim
Amr Ibrahim - 06.12.2021 11:33

hope you do a video on design patterns :)

Ответить
Amr Ibrahim
Amr Ibrahim - 06.12.2021 11:32

thank you very much
that was really helpful

Ответить
Mauricio Giraldo
Mauricio Giraldo - 19.11.2021 17:32

Thank you so much for the information. :)

Ответить
JamesAutoDude
JamesAutoDude - 12.11.2021 11:45

How do you handle blank submissions for updating?

Like let's say the form has all 3 fields to update info with, but the user skips the birthday field, is there a way that the statement would know it was skipped and to apply it to the correct spot in the database? 🤔🤔

Ответить
Gabriel Fono
Gabriel Fono - 07.11.2021 13:42

I watched all your videos in two days.
damn , as frontend engineer , I would say you are an expert in this field.
many thanks
love from seattle waghinston

Ответить
Soja
Soja - 24.09.2021 11:33

Waiting for the next episode!!!

Ответить
William
William - 04.09.2021 00:21

Finally made it through all of the videos. Very well done. I was looking for something that would build my ability to understand the basics, to applying the MVC to use in a working environment. I didn't know where the lessons were going to take me, but I'm glad it gave me the EXACT tools to get me started. At this point I am capable of understanding say, Magento, for which I needed this knowledge. From here I am now able to understand the lessons being taught by Marko Shust to further my education on Magento. Im honestly glad I stumbled upon your lessons. I'll certainly recommend them to other junior devs like my little cousin! Thanks for making it enjoyable!

Ответить
destiny obamwonyi
destiny obamwonyi - 30.08.2021 01:14

We are all waiting for the next episode , Thanks a lot though .

Ответить
Ernesto Favio
Ernesto Favio - 26.08.2021 07:28

Thanks bro, pls continuous this series

Ответить
Philip Hayes
Philip Hayes - 20.08.2021 20:15

I once feared learning MVC. You made is simple to understand. Is there a lesson #19?

Ответить
Jophland Ondzie
Jophland Ondzie - 17.08.2021 03:11

thanks sir!!

Ответить
Shawn Whilst
Shawn Whilst - 09.08.2021 16:01

next episode hasnt come out in two years, dani krossing or kanye west??

Ответить
Rahul saini
Rahul saini - 22.06.2021 07:51

This was a nice example. But we don't extend model class into controller and view. Instead we create an object of class model or define static methods. This way we are not bounded to use just one model.
Also, Extending model into view(or controller) doesn't make any sense. What if view overwrites parent(model) class's method? I know we will never do this. But if are not allowed to overwrite parent's class's method. OOP paradigm isn't being followed.
A model should only be extended into some other model.

Ответить
Ever Padilla
Ever Padilla - 21.06.2021 06:58

Dani, where's the next espisodo? Stop playing videogames lmao

Ответить
Johny Habche
Johny Habche - 19.06.2021 21:32

awsome!! where can i find the next episode plz

Ответить
Sherwin Louw (Web Developer)
Sherwin Louw (Web Developer) - 16.06.2021 19:43

next episode???

Ответить
x Pancake Guy x
x Pancake Guy x - 13.06.2021 12:28

Next episode please. :O

Ответить
RobustReviews
RobustReviews - 11.06.2021 00:38

Any tips for handling the mysql WHILE loop in the MVC model?

For example I want to run a "SELECT *" where I'll return many results in the model and display them in the view, I can't work out how to do it though.

Ответить
Ali Derakhshanian
Ali Derakhshanian - 07.06.2021 08:37

Waiting for the next episode. Hopefully, it's going to be soon :D

Ответить