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 table data gateway pattern - PHP Tutorial
From the course: PHP: Design Patterns
Challenge: Apply the table data gateway pattern
(airy cymbal) - For this challenge, I recommend that you have a database on hand. If not, it's not required but you'll only be able to test the concept, not the actual code. We want to remove the SQL from our HTML. We'll implement a Table Data Gateway to do it. In this case, you'll want to create a new post-Gateway class and have it do all the work. This challenge shouldn't take you too long, but if you run into any issues, check out the solution. Especially the example code we used during the earlier video.
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 table data gateway pattern1m 58s
-
(Locked)
Exploring a use case for the table data gateway pattern1m 48s
-
(Locked)
The table data gateway pattern in action1m 4s
-
(Locked)
Challenge: Apply the table data gateway pattern29s
-
(Locked)
Solution: Apply the table data gateway pattern50s
-
(Locked)
-