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