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 ...

Get Ajax for Web Application Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.