视图中使用foreach报错问题 问题情境:thinkphp3.2版本,使用四层循环变量时,报错以下错误: syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

视图中使用foreach报错问题
问题情境:thinkphp3.2版本,使用四层<foreach></foreach>循环变量时,报错以下错误:
syntax error, unexpected 'endforeach' (T_ENDFOREACH), 
expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

syntax error, unexpected 'endforeach' (T_ENDFOREACH),

expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

解决方法:第四层使用<volist></volist>循环。