как будет выглядеть этот php в веточке?
<?php for ($i=0; (isset($simple_names['product_special']) &&
$i<count($simple_names['product_special'])) ||
(!$i && !count($simple_names['product_special']));
$i++) { ?>
У меня результат примерно такой
{% set i = 0 %}
{% for i in (simple_names['product_special'] is defined and i<simple_names['product_special']|length or i is not and simple_names['product_special']|length is not) %}
......
{% set i = i +1 %}
{% endfor %}
но что-то не так
Twig error: Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected token "operator" of value "and" ("name" expected) in