commit | author | age | ||
15e03a | 1 | {% extends "base.mvc.php" %} |
F | 2 | |
3 | {% block title %} Products {% endblock %} | |
4 | ||
5 | {% block body %} | |
6 | ||
7 | <h1>Products</h1> | |
8 | ||
9 | <a href="/products/new">New Product</a> | |
10 | ||
11 | <p>Total: {{ total }}</p> | |
12 | ||
13 | {% foreach ($products as $product): %} | |
14 | <h2> | |
15 | <a href="/products/{{ product["id"] }}/show"> | |
16 | {{ product["name"] }} | |
17 | </a> | |
18 | </h2> | |
19 | {% endforeach; %} | |
20 | ||
21 | {% endblock %} |