From the course: PHP: Design Patterns

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Apply the Action-Domain-Response pattern

Challenge: Apply the Action-Domain-Response pattern - PHP Tutorial

From the course: PHP: Design Patterns

Start my 1-month free trial

Challenge: Apply the Action-Domain-Response pattern

- I'm not ashamed to say that this is probably the single most complicated challenge in the entire course. The solution to the MVC challenge will be our starting point. If you want a detailed overview of that application, check out the solution video for that section. If you didn't get that one completed, don't worry about it. You can still try it at any point. So here's our starting point. We have our index.php, our individual views, which have our templates, our models, which encapsulate the business logic, and the controllers, that combine the two. I expect this challenge to take you a while. You need to break the controller logic into actions, use the existing model, and figure out each of the responders. Individually it's not too complicated, but when you have to do all three at once, it can get complicated. Once you have a solution, or want to see my particular approach, check out the solutions folder for more details.

Contents