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

Challenge: Apply the table data gateway pattern - PHP Tutorial

From the course: PHP: Design Patterns

Start my 1-month free trial

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.

Contents