Skip to content

Instantly share code, notes, and snippets.

View nycki93's full-sized avatar

Nycki nycki93

View GitHub Profile
@eric1234
eric1234 / README.md
Last active March 1, 2026 01:55
A better way of doing layouts in PHP

Usage

Creating a Layout File

Create a file called layout.php. Where you want the content to appear add <?php echo $content ?>. Here is an example: