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: