corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
filippo.bertilotti
2024-05-24 e66fc13048b8a04c748c34711629f4a3bd50c71f
views/Products/new.php
@@ -1,17 +1,7 @@
<body>
    <h1>New product</h1>
    <form method="post" action="/products/create">
        <label for="name">Name</label>
        <input type="text", id="name", name="name">
        <?php if (isset($errors["name"])): ?>
            <p><?= $errors["name"] ?></p>
        <?php endif; ?>
        <label for="description">Description</label>
        <textarea id="description", name="description"></textarea>
        <button>Save</button>
        <?php require "form.php"?>
    </form>
</body>
</hmtl>