我的枝条代码
{% for language in languages %}
{% if (menu_new[language.language_id] is defined) %} {% set menu_new[language.language_id] = "text" %}{% endif %}
{% endfor %}
我的PHP代码
foreach ($languages as $language) {
if(!isset($menu_new[$language['language_id']])) $menu_new[$language['language_id']] = "text";
}
我有这个错误: 值“[”
)的意外标记“标点符号”