Using the Pattern
As we have covered, there are many ways to use this pattern. This pattern can be combined with other patterns that are completely different, or the same pattern in combination with other MVC triads. As an example, we could have one MVC in our PHP code and another MVC in our JavaScript code. There are also many different ways to interpret the MVC pattern—no one way is the absolute and only way because the best solution for a situation is always the one that works best. As I said, this pattern can be used to simply organize your JavaScript and your PHP code into separate MVC patterns of their own, or it can be used to organize all your code into one combined MVC pattern. In the last section, we covered how we already combined ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access