PHP Basic MVC Framework Part 7 - Router

preview_player
Показать описание
Final part of the basic series.
Again, sorry it took so long.
If you would like to see some features added to this framework then please leave a comment and I will see what I can do.

Рекомендации по теме
Комментарии
Автор

First watched this set of videos about 3 years ago and revisited as required. By far the best and most understandable videos I have come across on this subject, they have certainly helped me develop my own ecommerce site in a structured MVC style, thank you.

freightuk
Автор

Finally! after doing a lot of research I'm understanding how the MVC pattern works. This series helped me soooo much. Thank you! Greetings from El Salvador ;)

iwannabaa
Автор

I really enjoyed your series too! I hope more people are thanking you than just those on YouTube! I have been toying with MVC for about a month or two now trying to find the best implementation. From your tut, I really liked your use of the registry class. One thing I am struggling with (in my implementation) is handling some libraries, and which class should hold control of them.

TheOneSpam
Автор

Well i've watched this video serious a long ago about 2 years from now, i've watch these videos almost 20 times then i get the idea how MVC works. and now i'm working on YII framework got the in depth knowledge of it through these videos. thumbs up man you did a great job (y). thanks you 

TouqeerShafi
Автор

Well done, you really seem to know what you are doing. There were some interesting ways you did things that got me thinking. You did a great job with this series, you should make more.

Jstall
Автор

Hi Man, I was looking in to MVC pattern for a few days now, I have went through quite a few tutorials and I have to say yours opened my eyes. Finally I get it. Thanks a lot !!

LukaszWisniewskiWolfyDesign
Автор

Outstanding work. Made my understanding of MVC.

vignir
Автор

Thanks for this! Gave me some good new ideas.

MelvinSF
Автор

ie) a Form class library was added to the Controller (for user input)
the DB and Cache class was added to the Model for Biz logic.
a Translate class was added to my View class (for multi-lingual display)
I also have a Session (static) class
But I want to include a (global?) error class like you kinda mentioned in the end. I want to be able to have inlineErrors (printed inside the views of other classes rendered views) or pageError (like 404 errors etc)

TheOneSpam
Автор

Also, my last question, what do you think about having a user Library for use in conjunction with a userController for handling requests by the user to edit/display user related stuff?
Also, could this be applied to a Blog library, forum library.. etc? With my last implementation of MVC, i did have a user library, but not for blog and forum, but I am trying to consider the best possible implementation method for my third from-scratch reprogramming...

TheOneSpam
Автор

Sup, I sent you a prv, also.. the load.php is that specific for models? also before I forget again.. great job!

xlordtk
Автор

Do you plan to continue the series?
It is really well explained, but it still lacks a few things. Autoloader, security, access rights to methods (Admin, private area, etc.).

MrPowerm
Автор

how will I handle the routing with pages that does not have a controller? Say I have an admin section for users to create page's like.. about.php, how will I invoke this in to our router? so instead of the user going somesiteDotcom/about.php, it would just be somesiteDotcom/about/ allowing this page to access all classes like if it did have a controller.

xlordtk
Автор

All MVC tutorials contain this router paradigm. If this framework were to be used in a blog on a website, why use a url to invoke controller methods when you could just use the controller class directly? Would this not confuse users of the website? I must be missing something obvious.

abnegatingconformity
Автор

I get 404 not found always. How can I fix it?

massamsdc
welcome to shbcf.ru