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 - PHP Tutorial
From the course: PHP: Design Patterns
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Introducing the Action-Domain-Response pattern1m 43s
-
(Locked)
Exploring a use case for the Action-Domain-Response pattern1m 34s
-
(Locked)
The Action-Domain-Response pattern in action1m 11s
-
(Locked)
Challenge: Apply the Action-Domain-Response pattern48s
-
(Locked)
Solution: Apply the Action-Domain-Response pattern2m
-
(Locked)
-
-
-
-
-