- This before example should look familiar…if you've already watched the MVC videos.…This is a basic, traditional MVC.…We have views which handle the HTML.…We have models which keep all the model data.…And we have controllers which tie them all together.…Check out the MVC video if you need a deeper understanding…of this code or how it's structured.…In the after is where things get quite a bit…more interesting and complicated.…So we're going to step through this piece by piece.…First we have the views, which are unchanged,…but have moved to a directory called templates…to clearly identify what they are.…
Next, the models that we have before are also unchanged,…but have moved to a directory called domains.…None of our business logic has changed.…The first big change are the actions.…Previously, controllers had a different method…for each operation.…With actions, we have a separate class for each operation.…I mean that quite literally.…If you have a domain called project,…you'll have a separate action…for the viewing, editing, creating, and even deleting.…
Author
Released
1/28/2015- Accessing data with the active record and table data gateway patterns
- Creating objects with the factory, singleton, and mock objects patterns
- Extending code with decorator and adapter patterns
- Structuring applications with MVC and Action-Domain-Responder patterns
Each chapter features a design pattern in a real-world coding scenario, and closes with a practice challenge to test your new skills.
Skill Level Intermediate
Duration
Views
Related Courses
-
PHP: Creating Secure Websites (2014)
with Kevin Skoglund4h 15m Intermediate -
PHP: Accessing Databases with PDO and MySQLi
with David Powers3h 47m Intermediate
-
Introduction
-
Welcome51s
-
-
1. The Active Record Pattern
-
2. The Adapter Pattern
-
3. The Decorator Pattern
-
4. The Factory Pattern
-
5. Mock Objects
-
Introducing mock objects2m 18s
-
-
6. The Model-View-Controller Pattern
-
7. The Action-Domain-Response Pattern
-
8. The Publish/Subscriber Pattern
-
9. The Singleton Pattern
-
10. The Strategy Pattern
-
11. The Table Data Gateway Pattern
-
Conclusion
-
Next steps2m 8s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Exploring a use case for the Action-Domain-Response pattern