Layouts
Layout files live in layouts/, e.g., layouts/default.php, layouts/auth.php. Inside layouts, call $layout->getHead() and $layout->getContent().
Create a layout
<?php $config = getConfig(); ?>
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<?= $layout->getHead() ?>
</head>
<body>
<?php include(__DIR__ . "/../components/navbar.php"); ?>
<main><?= $layout->getContent() ?></main>
</body>
</html>
Use a layout in a page
<?php
$layout->setLayout('auth');
?>