Amber Suratte

Full Stack Web Developer

PHP Templating with Twig

This page uses Twig as a template engine to efficiently render similar blocks of content.

The purpose of this project was to demonstrate my proficiency with using Twig to create PHP templates. The data is being rendered from a MySQL relational database which I designed and built.

Shared components like the page header and footer were abstracted into separate Twig templates which are imported as needed into the page templates. The template references session data and displays a "recommended for you" flag if the logged in user has favorited a specific meal.

View on GitHub >

View more student work

© 2022 Amber Suratte