commit | author | age | ||
15e03a | 1 | <body> |
F | 2 | <h1>Products</h1> |
3 | ||
4 | <a href="/products/new">New Product</a> | |
5 | ||
6 | <p>Total: <?= $total ?></p> | |
7 | ||
8 | <?php foreach ($products as $product): ?> | |
9 | <h2> | |
10 | <a href="/products/<?= $product["id"] ?>/show"> | |
11 | <?= htmlspecialchars($product["name"]) ?> | |
12 | </a> | |
13 | </h2> | |
14 | <?php endforeach; ?> | |
15 | </body> | |
16 | </html> |