回答編集履歴
1
コードの修正
answer
CHANGED
@@ -15,9 +15,9 @@
|
|
15
15
|
|
16
16
|
$template = <<<EOF
|
17
17
|
{% for item in items %}
|
18
|
-
|
18
|
+
{{item.name}} -
|
19
|
-
|
19
|
+
{{attribute(items, loop.index) is defined ? attribute(items, loop.index).name : '次はありません'}}
|
20
|
-
|
20
|
+
<hr>
|
21
21
|
{% endfor %}
|
22
22
|
EOF;
|
23
23
|
|