MVC for advanced PHP developers

I need help from more experienced programmers. I want to improve my MVC skills. But I could not find a good google tutorial for MVC. Google always gives "MVC for beginners."

I understand what MVC is, and I can do it, but I'm not experienced enough to do something practical in OOP.

If someone knows a good object-oriented tutorial for MVC, please direct me to the right place - I'm looking for good links, books, etc.

+54
oop php model-view-controller
May 03 '13 at 10:07
source share
2 answers

Links containing PHP-only content are marked with php for easier identification.

You cannot even begin to understand MVC before you have a complete understanding of OOP. This includes OOP methods ( dependency injection , unit testing , refactoring ) ( SOLID , SoC , CQS , LoD ) and general patterns (and no, singleton is not an object-oriented pattern).

MVC is an advanced architectural design that requires a deep understanding. It is not intended for beginners or for tiny hello world applications. One uses MVC to add additional constraints to the code base when simply following OOP methods becomes too loose to manage the code base.

The best I can offer you is to start expanding your knowledge of object-oriented code:

The two lectures given above should cover the basics. Then go to the next item:

When you understand everything that has been explained in this series, you can continue:

In addition, I highly recommend you read (in that order):

PS: you can also take a look at this book (carefully, because it has problems): PHP php design pattern guide

+207
May 3 '13 at 10:33
source share

I recommend you a book on design templates. Most of these books also cover the MVC pattern, and other patterns deserve attention if you are building a complete framework.

One good book PHP Design Patterns . I do not know if it exists in English, but I would look for other books and compare the contents.

+1
May 03 '13 at 10:26
source share



All Articles