Jump to content

Recommended Posts

All of the ones I have found have been horrible, I mean just down right horrible. Oh, I also don't want to use a framework, seems like then my app is dependent on that framework to even function. So, I have a coupon questions, that's it

 

1) Is there a clear and good MVC tutorial out there, even better if it's focused on PHP that keeps best practices in mind?

2) I have seen a lot these tutorials creating a generic registry object, tossing objects in there and passing it around to give objects global access to each other. This seems sloppy and again creates a dependence not only on there being that registry objects but also the objects being passed around. Is this really the best solution?

 

I have two objects, DB and Page. Both of my design. DB added to the registry and passed to Page. Page then uses methods from DB just fine. Now, if DB gets replaced and has different methods, Page no longer works. Though, this may be a question more suited for the OOP board.

 

Any help and your thoughts on the subject would help.

Link to comment
https://forums.phpfreaks.com/topic/108919-is-there-a-good-mvc-tutorial-out-there/
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.