php - Twig parses space before variable -
twig seems parse space before variable part of variable's name. example, following piece of template:
<td>{{ item.status }}</td> <td>{{ item.animatorid }}</td>
sometimes gives me following exception
variable " item" not exist in mytemplate.html.twig @ line 36
note space in name. line 36 second line. removing space between brackets , variable fixes it, makes code less readable.
any idea how prevent behaviour?
Comments
Post a Comment