Heh. I did my first semi-MVC hobby-project the past few days. When I got it all working today thought the controller wasn't reusable enough, and started rewriting it, only to make it way more complicated than it was originally. Eventually I gave up and decided I had to learn more about MVC.
From 3:03 I felt like I understood a whole lot more. Thanks.
Im definitely considered a noob...and I could not find for the life of me what connected HTML to Databases and how it all worked, I knew there was some sort of link missing. A MVC video helped but a 12 minute video took me 40 minutes to understand due to the guys Indian accent (he was smart but It was still hard!), and this really helps me along my way, PRICELESS! Ill be watching probably all of your videos. Yes all 425 lol
i like your videos because they just describe things i had to learn myself too. the best example is this controller video. model is the modular part of logic, while controller is just the "use" of that logic in the current application. this use may be completly different in another application. i never read something or found any information about that, but one day i just started to work that way. thx for the video :-)
Irregardless of the data? Irregardless. Regardless is the negative term. So saying irregardless of the language is saying that it has to be one language. Sorry, may make me sound like a dick, but it annoys me so much.
Completely random, but I have that book in the background. Is it the fourth edition? PHP and MySQL Web Development by Luke Wellington and Lauren Thompson. I highly recommend this to anyone, if they want to learn PHP and MySQL in and out. May I ask, is this where you got your knowledge of PHP and MySQL from?
Stefan- could you please clarify the difference between Models and Controllers? I've saw some tutorials with people saying models are ONLY for database querys but there's other folks saying models are for calculations (eg, calculating the total price of a shopping cart) AND database queries. Your expert opinion would be really appreciated as I'm really struggling to make sense of MVC. Cheers and keep up the good work!
I knew it. :) I've been seeing them like conversations or glue in a way. Took me a while to really see this on own, but you definitely drove it home. So the model really is the real biggie on code reuse between projects, then views(change out say... elements on a form), and the controllers are really only useful to the specific project. Also I should mention that sometimes I hear code reuse and they're really talking inside the program instead, like with inheritance. That confused me early on.
Very interesting. But you now, controllers classes sometimes do get extended, so they are not totally throw-away components. In my own CMS I sometimes extend controllers when it makes sense. By the way, what kind of reuse you are talking about - betwee projects or within the same project?
Yes, I will concede that you can do some abstraction in the controller. My main point was just to point out that the controller was the toss away layer.
I stopped watching when the word "irregardless" was used......that's not a word.
ppityphoon 5 months ago
Heh. I did my first semi-MVC hobby-project the past few days. When I got it all working today thought the controller wasn't reusable enough, and started rewriting it, only to make it way more complicated than it was originally. Eventually I gave up and decided I had to learn more about MVC.
From 3:03 I felt like I understood a whole lot more. Thanks.
MelvinSF 8 months ago
@MelvinSF Super! Glad you found the video helpful! Feel free to join our Killersites Forums and check out our websites.
killerphp 8 months ago
Im definitely considered a noob...and I could not find for the life of me what connected HTML to Databases and how it all worked, I knew there was some sort of link missing. A MVC video helped but a 12 minute video took me 40 minutes to understand due to the guys Indian accent (he was smart but It was still hard!), and this really helps me along my way, PRICELESS! Ill be watching probably all of your videos. Yes all 425 lol
lilkev3976 11 months ago
@lilkev3976 That's great! Feel free to check out our website, as well as our forums to help answer all your web design/programming questions.
killerphp 11 months ago
i like your videos because they just describe things i had to learn myself too. the best example is this controller video. model is the modular part of logic, while controller is just the "use" of that logic in the current application. this use may be completly different in another application. i never read something or found any information about that, but one day i just started to work that way. thx for the video :-)
roadricus 1 year ago
@roadricus Cool! Glad you liked it.
killerphp 1 year ago
@killerphp
i always thought: am i right doing that? until today i had no problems doing that and your video confirmed it :-)
roadricus 1 year ago
good vid - i chuckled at how much you were like al pacino just after 55 secs!
robganly 1 year ago
@robganly
Thanks.
killerphp 1 year ago
@robganly
Thanks,
Stefan
killerphp 1 year ago
@robganly In my opinion, Al Pacino look like KillerPHP video author (SM) :)
filipgorczynski 1 year ago
@robganly its more like Andy Garcia!!!!
dennis3380 1 year ago
Irregardless of the data? Irregardless. Regardless is the negative term. So saying irregardless of the language is saying that it has to be one language. Sorry, may make me sound like a dick, but it annoys me so much.
WebDevFTW 1 year ago
Completely random, but I have that book in the background. Is it the fourth edition? PHP and MySQL Web Development by Luke Wellington and Lauren Thompson. I highly recommend this to anyone, if they want to learn PHP and MySQL in and out. May I ask, is this where you got your knowledge of PHP and MySQL from?
JamesRCoston 1 year ago
Comment removed
JamesRCoston 1 year ago
Stefan- could you please clarify the difference between Models and Controllers? I've saw some tutorials with people saying models are ONLY for database querys but there's other folks saying models are for calculations (eg, calculating the total price of a shopping cart) AND database queries. Your expert opinion would be really appreciated as I'm really struggling to make sense of MVC. Cheers and keep up the good work!
selfhelpguy 1 year ago
It a blueprint for an engine and a way of structuring your web applications.
.... It is the predominant method of structuring applications these days.
Stef
killerphp 1 year ago
So basically MVC is a template engine?
cryspypotato 1 year ago
Thanks; I'm still wrapping my head around MVC, so this was helpful.
dshanahan1966 1 year ago
Well put; thanx!
IonisisCompany 1 year ago
I knew it. :) I've been seeing them like conversations or glue in a way. Took me a while to really see this on own, but you definitely drove it home. So the model really is the real biggie on code reuse between projects, then views(change out say... elements on a form), and the controllers are really only useful to the specific project. Also I should mention that sometimes I hear code reuse and they're really talking inside the program instead, like with inheritance. That confused me early on.
ErgosesChannel 2 years ago
@ErgosesChannel
Ahh .... eyes open!!
killerphp 2 years ago
Very interesting. But you now, controllers classes sometimes do get extended, so they are not totally throw-away components. In my own CMS I sometimes extend controllers when it makes sense. By the way, what kind of reuse you are talking about - betwee projects or within the same project?
Snytkine 2 years ago
I was talking between projects. You'd figure your objects could be reused within the same project.
Stef
killerphp 2 years ago
Thank you, that was helpful.
Jelle
jelleschouwstra 2 years ago
Great vid.
lebowitzyoel 2 years ago
Hey Steph..wouldn't we understand that in a nice screencast?? btw, nice sweater, where do i get one?
CamiloSanchez1979 2 years ago
I just picked up the sweater at a place called Winners .. I have no idea where else to get it.
I am moving now, but will have new screencast within the next two weeks .. many more I hope.
Stefan
killerphp 2 years ago
Yes, I will concede that you can do some abstraction in the controller. My main point was just to point out that the controller was the toss away layer.
Thanks for the comment.
Stefan
killerphp 2 years ago
Sorry, I meant Stef.
CamiloSanchez1979 2 years ago
i agree with the fact that controller are not reusable between projects, but i think you can do some abstractization on controllers.
solomongaby 2 years ago