cabecalho.php

<< Click to Display Table of Contents >>

Navigation:  Outros > CRUD simples mas otimizado  >

cabecalho.php

Previous pageReturn to chapter overviewNext page

<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
        <title><?= $titulo ?? "sem título" ?></title>       
        <?php
        // se a var $style foi preenchida, vamos adicionar dentro do head
        if (isset($style)) {
            echo "<style>" . $style . "</style>";
        }
        ?>        
    </head>