i guess im randomly asking but does someone know of a tool to get back into an instagram account..? I stupidly forgot my login password. I would love any tips you can offer me.
@@farhannajmi8126 Using laravel makes it easy, it's loaded with all kinds of features and functions. Making a full login system is as easy as typing "php artisan make:auth" in the command line and you got it. It is maintaned properly so any security is dealt by them. I feel safe using it because laravel uses eloquent for the database connection witch makes database injections "impossible". Look up "coderstape" on his explaination of all the laravel functions. He makes it just as easy as Daniel does for php, c and javascript. Laravel is made for people that know php but don't have the time to write everything themselfs. Thousands of npm and composer packages are available witch will add functions to your website with one command. This will of course not teach you how to write it yourself. 😉
i learned proper programming when i start learning laravel. i can say im nothing without laravel. it somehow forces you to follow design patterns. but its better if you know basic php functions
Def agree with you. Even compared with some guys like Traversy or idk some more bigger and famous people who teach online here, this guy is much more dedicated and he's way fits me so much... He gets me
Wow. Thank you for such an easy-to-understand explanation. Especially with that story analogy. I was SO confused with MVC, especially because Controller was doing what the View was doing as well. Now I know that's only the difference between how people use the MVC framework. Love it.
The theory is explained very well in this video. Where I personally still fail is to find a good example where this theory is put into practice. I see there are a lot of videos from you which explain the basics of how to program in PHP but I haven't been successful finding great videos which show MVC running using a basic example. Is there something around from you?
As you never got the answer, if I may interest you in my take on how to use MVC in practice. I'm sure you already got the answer somewhere else, but someone else might need it ua-cam.com/video/hluMG5LshSI/v-deo.html
Love the new video format, I think that it bring the better teacher out of you. When I have any problems with PHP (thanks to your videos have learnt this wonderful language) I go straight to your channel. 10/ 10 :)
I’d describe the difference between the two as, “one is the controller *controlling* (routing) information between everyone, and the other is a controller *input* of information.”
Oh my god, I didn't know this. Our school teaches procedural, and things are the same with that first example. I've been using laravel for a year now, and I realized if OOP is possible in laravel then OOP in php is possible. And here I am flabbergasted. This shocks me, fudge the stigma of php. locked my mind from finding out more of it. Why did our school not teach this?!
Procedural is always the first step into PHP 🙂 but often universities neglect to tell the students about OOP and frameworks… which means the students get a wrong impression about “how prepared they are for the real world”… 😕
2 years down the line and your videos are a major help! Thanks for that! Question: Do you have a Laravel tutorial? And can you advice on using Laravel in webapp development?
I have never gotten into Laravel during my web dev career. It was mostly front end based. So unfortunately I do not have anything on backend frameworks like Laravel 🙂
Thanks Dani, nice course, i'm applying all OOP knowlges in project examples, i'm actually preparing myself for test interview to get a remote work job as a full stack developer, can you advice me ? may i choose may be a front end or back end ?
The procedural example is much more clear on what is going on. And there is no need to retype code, If a different page needs it you can Cut and Paste or just put it in a separate file and use includes. From this example I see complexity without much value. In the procedural version I see where the data is coming from and how it gets displayed in one simple page of code. I had a Ruby programmer tell me it was bad to know how the database worked, Seemed nutty to me. SQL is not rocket science.
As a PHP Developer, i would argue that the original MVC pattern was misused. Before the year 2000 many Webdevelopment Agencies wanted to stand out, also the Framework Providers wanted to offer some Buzzword for selling. They used MVC for this case. MVC rely on events. If a Model was changed an even got triggered and notice the controller so that he can pass the new values to view. If you want to create original MVC in PHP you need a php process running whole time on your maschine and waiting for input or database triggers. But you cannot do this over HTTP since HTTP expect a response to shutdown the connection. Ofc many developers noticed the problem with a process and events and started to invent things like "Front Controller Pattern". Also as a Webdeveloper you also have contact with JavaScript on a different Layer. All of the sudden your View which display the output becomes a Model for a new MVC Layer. Because of this MVVM was then introduced. So the Web Languages reused the MVC wording for Marking Purpose while the pattern is not implementable in the language it self. To be precise you need actually to separate it into MVC and Web-MVC. Anyways a good Video, maybe you could create for your next videos, what is HMVC, MVP, MVVM and MVA :D Ah and a little rant :D please don't use ?> at the end of the script (unless HTML code is displayed afterwards), this might cause "header cannot be sent" errors and it violate PSR-1
I know this is not the topic on OOP but I wonder if you could do a video on, how to use JavaScipt in PHP for example, if I want to delete the item from DB but JS shows up as a pop-up modal before deleting. I'm not sure how I can implement JS with PHP and make them work together.
I have already made some classes for user login and stock management is it feasible two incorporate these into an MVc framework or would I need to start from scratch? Great video btw!
I'm a little confused with how you talk about the second way to do the MVC. I thought the point of the MVC is that the model (which i think of as raw data) isn't meant to know anything about the view. The MVC i thought was a compound pattern made up of the strategy, composite and observer patterns. The strategy being the controller contains all the view logic which makes the view decoupled which means it only has to worry about what to display to the user and not how to do it. The model can use observers to make changes to the view as information changes with the model still being completely decoupled from the view. But i'm still learning... :)
The way you explain it is one of the 2 ways I explained it in this video (the right illustration). However like I also said in the video, there is another way to do it as well. There are different benefits in both ways.
Here are a few links that argue for the two ways of doing MVC if you are interested :) Some of the differences or "decisions" for why you would use the two methods could for example be that: Contr -> Model & Model -> View By having the View communicate directly with the Model, we don't accidentically change the View whenever we change the Contr. Model -> Contr -> View By having the Contr feed the View, we have better re usability of the methods in the View class since the View ONLY shows non DB content. So again... Personal preference :) www.tomdalling.com/blog/software-design/model-view-controller-explained/ r.je/immutable-mvc-in-php
Would it be practical to have two controllers, one to input data to the model and another to handle output to the view, just so there is that extra layer of separation of responsibility? One controller handling input and output, or the model handling more than just fetching, seems like it could get messy. Beginner question, thanks.
Laravel uses the second MVC model shown, where the controller updates the view. If someone intends to pick up Laravel eventually, hopefully it's not to confusing to do it the other way.
After 4 years of uploading these series, you are still the PHP king when compared with other paid tutors !! we are waiting your Laravel tutorials :)
One of the best explainations of oop and mvc till now. Really appreciate your efforts.
This is something that I feel I should pay for, but it's free. Thanks buddy.
i guess im randomly asking but does someone know of a tool to get back into an instagram account..?
I stupidly forgot my login password. I would love any tips you can offer me.
This method of explaining when he illustrates everything as if it is a method of thinking not just code is my favourite method
I am not native speaker but i think your english is amazing. Thank you for your lessons!
I really enjoy it.
Thanks for your free and high quality courses :)
When I first started with laravel I had no clue what I was doing and how MVC worked, but once I crated a few pages I started to get the hang of it.
how's using laravel so far ? I actually to learn laravel soon too.
@@farhannajmi8126 Using laravel makes it easy, it's loaded with all kinds of features and functions.
Making a full login system is as easy as typing "php artisan make:auth" in the command line and you got it.
It is maintaned properly so any security is dealt by them. I feel safe using it because laravel uses eloquent for the database connection witch makes database injections "impossible".
Look up "coderstape" on his explaination of all the laravel functions. He makes it just as easy as Daniel does for php, c and javascript.
Laravel is made for people that know php but don't have the time to write everything themselfs. Thousands of npm and composer packages are available witch will add functions to your website with one command. This will of course not teach you how to write it yourself. 😉
i learned proper programming when i start learning laravel. i can say im nothing without laravel. it somehow forces you to follow design patterns. but its better if you know basic php functions
Checkout Phalcon :)
@@Stoney_Eagle Also busy with the coderstape Laravel courses. Between that an mmtuts I'm sure I will get it eventually
Thank you Elon Musk for such a great explanation :)
hahaha
pfft hahha
You're the best!! Seriously. You structure and explain this course a thousand times better than anyone else.
I am new to MVC and I now have a clearer understanding of MVC after watching your video. Thank you very much.
Wow. One of the best person explaining ways of programming. Thank you so much
You have such a natural way of teaching and making everything look simple! I love your videos and the quality upgrade that this channel has had
Def agree with you. Even compared with some guys like Traversy or idk some more bigger and famous people who teach online here, this guy is much more dedicated and he's way fits me so much... He gets me
yeah, the view can get data from the model directly, or indirectly via the controller. Its very good that you have mentioned the 2 way of doing mvc.
Hence the conclusion that you can use something else instead of MVC.
Perhaps you can. However MVC is a must for some types of web applications because there is simply no better way to organize your code than using MVC.
@@sf2998 Yes, you right.
And finally I understand what MVC design pattern is. Thanks a lot.
If you're trying to get better during the lockdown, this is definitely your guy!
I’m one of the regular viewers of your videos. You help us understand how to code php in an easy way and I appreciate it. Thank you
You are the best explanation that I have met.
Wow. Thank you for such an easy-to-understand explanation. Especially with that story analogy. I was SO confused with MVC, especially because Controller was doing what the View was doing as well. Now I know that's only the difference between how people use the MVC framework. Love it.
You should be a teacher! You have the skill to teach someone.
Your approach and delivery are awesome. I might learn this stuff after all! (after avoiding it for about 10 yrs!)
Thank you. All your videos were perfect fundamentals of my PHP programming.
I love how you details everything
You are awesome! You explain everithing step by step which make it easier for understand! Thank you !!!
This video is too good to be free. Just happy learning PHP
Thank you very much. Just one plea: When it comes to the database stuff, could you please do it with PDO? I think it mostly has only advantages. Thx
That is the plan :)
You are the best. it is my first comment in youtube. but actually i want to say thank you very much for all your great materials
oh my, best explanation i've seen so far, subscribed!
you are so good that i watch your videos instead of sunday night movie
The theory is explained very well in this video. Where I personally still fail is to find a good example where this theory is put into practice. I see there are a lot of videos from you which explain the basics of how to program in PHP but I haven't been successful finding great videos which show MVC running using a basic example. Is there something around from you?
As you never got the answer, if I may interest you in my take on how to use MVC in practice. I'm sure you already got the answer somewhere else, but someone else might need it ua-cam.com/video/hluMG5LshSI/v-deo.html
you are great at explaining things and have sparked my interest in learning PHP !
It is very useful one. I understand about MVC much easier.
This is very exciting!! Thank you for making this course 🙏🙏🙏
Thank you for this description. I'm way more clear on how much is structured and works. Thank you
Very clear explanation Dani. Thank you
If you make aPHP CRUD with OOP it will be perfect after this OOP fundamental
hey check out his php oop series he has done it in the last tutorials
@@muhammadyasin2964 there was only insert, I couldn't see delete and update
@@mr.echoontheway.3570 figure it out yourself? :)
@Jonathan De La Paz can you tell me how do i do that using Django Unchained DBMS? I'm using a PyASPXMLJAVAAssembly stack
Love the new video format, I think that it bring the better teacher out of you. When I have any problems with PHP (thanks to your videos have learnt this wonderful language) I go straight to your channel. 10/ 10 :)
Great presentation. Thanks.
Will it be just explaining which is great, or Coding too?
Same question !
@Dominus Providebit not so sure :)
Very good explanation about the two different approaches to mvc
amazing tutorials, I need the next one now! haha. Keep up the good work!
You really made my lockdown period productive during this corona time. Thanks and lots of love bro ......
Very useful, I needed to apply this on my NodeJs projects, thank you!
Hey Dani. Your explanation just made it seem so easy. Just checking to see if you have a video class on URL Routing with PHP OOP?
This video is an eye opener.
Best tutorials and playlist
Great explanation, THANKS!
Daniel, you are the man.
Thanks a lot!
Legend Teacher ☺
I’d describe the difference between the two as, “one is the controller *controlling* (routing) information between everyone, and the other is a controller *input* of information.”
Oh my god, I didn't know this. Our school teaches procedural, and things are the same with that first example.
I've been using laravel for a year now, and I realized if OOP is possible in laravel then OOP in php is possible. And here I am flabbergasted.
This shocks me, fudge the stigma of php. locked my mind from finding out more of it. Why did our school not teach this?!
Procedural is always the first step into PHP 🙂 but often universities neglect to tell the students about OOP and frameworks… which means the students get a wrong impression about “how prepared they are for the real world”… 😕
I understood MVC via below analogy
Controller --- is the waitress
Model --- is the chef
View --- is the food
User --- is the client(the browser)
Dude, you're incredible!
Thank you
2 years down the line and your videos are a major help! Thanks for that! Question: Do you have a Laravel tutorial? And can you advice on using Laravel in webapp development?
I have never gotten into Laravel during my web dev career. It was mostly front end based. So unfortunately I do not have anything on backend frameworks like Laravel 🙂
@@Dani_Krossing Thank you! 💯
Thank you it is clear to me now
After finishing this course, I'll go through all videos I watched and I will like them all :)
theoretically it make sense to me. It just I don't have idea how can I breakdown the task. Do you have a video where you're applying mvc to a project?
If you are here after finishing the procedural PHP course,
Congratulation friend!
cool please start more mvc tutorials
I love it. Looking forward to the next one!
Thank you for best info😍. God bless
Excellent presentation
Great Explanations
hey man your teaching is very very nice.. please make a video on laravel pleaseee
Thanks Dani, nice course, i'm applying all OOP knowlges in project examples, i'm actually preparing myself for test interview to get a remote work job as a full stack developer, can you advice me ? may i choose may be a front end or back end ?
great stuff - greetings from DK
Very nice explanation
The procedural example is much more clear on what is going on. And there is no need to retype code, If a different page needs it you can Cut and Paste or just put it in a separate file and use includes. From this example I see complexity without much value. In the procedural version I see where the data is coming from and how it gets displayed in one simple page of code.
I had a Ruby programmer tell me it was bad to know how the database worked, Seemed nutty to me. SQL is not rocket science.
this was very useful thanks
Great explaination
Make a series to create personal mvc framework
thank you so much for the video!!! it's really great, i really like your explanation
As a PHP Developer, i would argue that the original MVC pattern was misused. Before the year 2000 many Webdevelopment Agencies wanted to stand out, also the Framework Providers wanted to offer some Buzzword for selling. They used MVC for this case. MVC rely on events. If a Model was changed an even got triggered and notice the controller so that he can pass the new values to view. If you want to create original MVC in PHP you need a php process running whole time on your maschine and waiting for input or database triggers. But you cannot do this over HTTP since HTTP expect a response to shutdown the connection. Ofc many developers noticed the problem with a process and events and started to invent things like "Front Controller Pattern". Also as a Webdeveloper you also have contact with JavaScript on a different Layer. All of the sudden your View which display the output becomes a Model for a new MVC Layer. Because of this MVVM was then introduced.
So the Web Languages reused the MVC wording for Marking Purpose while the pattern is not implementable in the language it self. To be precise you need actually to separate it into MVC and Web-MVC.
Anyways a good Video, maybe you could create for your next videos, what is HMVC, MVP, MVVM and MVA :D
Ah and a little rant :D please don't use ?> at the end of the script (unless HTML code is displayed afterwards), this might cause "header cannot be sent" errors and it violate PSR-1
Lit explanation dude 👍🙏🔥
You are the best.
Great explanation...
love the format.awesome
can you make videos on how to change procedural php to oop php
great teacher
my lovely teacher !
I know this is not the topic on OOP but I wonder if you could do a video on, how to use JavaScipt in PHP for example, if I want to delete the item from DB but JS shows up as a pop-up modal before deleting. I'm not sure how I can implement JS with PHP and make them work together.
Can you please discuss about routing and navigation?
Amazing explaination!!
Thank you so much. Its so useful.
Great video thank you so much You saved my life
I have already made some classes for user login and stock management is it feasible two incorporate these into an MVc framework or would I need to start from scratch? Great video btw!
The explanation is great! Sadly, I want to learn the other design pattern, in which the view request a response to controller.
I know right. It feels wrong to have the view query the model directly.
@@jacobsan yeah me too, I feel like it's not secure.
im a bit shocked at the low view count. This is grade a stuff!
I'm a little confused with how you talk about the second way to do the MVC. I thought the point of the MVC is that the model (which i think of as raw data) isn't meant to know anything about the view. The MVC i thought was a compound pattern made up of the strategy, composite and observer patterns. The strategy being the controller contains all the view logic which makes the view decoupled which means it only has to worry about what to display to the user and not how to do it. The model can use observers to make changes to the view as information changes with the model still being completely decoupled from the view. But i'm still learning... :)
The way you explain it is one of the 2 ways I explained it in this video (the right illustration). However like I also said in the video, there is another way to do it as well. There are different benefits in both ways.
@@Dani_Krossing well I'll look forward to see how how you use the other method :)
Here are a few links that argue for the two ways of doing MVC if you are interested :) Some of the differences or "decisions" for why you would use the two methods could for example be that:
Contr -> Model & Model -> View
By having the View communicate directly with the Model, we don't accidentically change the View whenever we change the Contr.
Model -> Contr -> View
By having the Contr feed the View, we have better re usability of the methods in the View class since the View ONLY shows non DB content.
So again... Personal preference :)
www.tomdalling.com/blog/software-design/model-view-controller-explained/
r.je/immutable-mvc-in-php
@@Dani_Krossing cheers dude, thanks for links
Hi, Thank you, good job
Cool
great class
Great tut
awesome!! awesome!! awesome!!
Thanks Daniel/mmtuts/ am grateful
thank man you very good teacher .. :) like and Subscribed
Would it be practical to have two controllers, one to input data to the model and another to handle output to the view, just so there is that extra layer of separation of responsibility? One controller handling input and output, or the model handling more than just fetching, seems like it could get messy. Beginner question, thanks.
Great explanation man, thanks alot :)
Thank you.
Thnx for this!
im here 🤓
Useful tools
Laravel uses the second MVC model shown, where the controller updates the view. If someone intends to pick up Laravel eventually, hopefully it's not to confusing to do it the other way.
Thank u