質問するログイン新規登録

回答編集履歴

1

コードの修正

2016/08/19 12:31

投稿

nnssn
nnssn

スコア1221

answer CHANGED
@@ -15,9 +15,9 @@
15
15
 
16
16
  $template = <<<EOF
17
17
  {% for item in items %}
18
- {{item.name}} -
18
+ {{item.name}} -
19
- {{attribute(items, loop.index) is defined ? attribute(items, loop.index).name : '次はありません'}}
19
+ {{attribute(items, loop.index) is defined ? attribute(items, loop.index).name : '次はありません'}}
20
- <hr>
20
+ <hr>
21
21
  {% endfor %}
22
22
  EOF;
23
23