{{ dump(extend) }}
结果:
boolean false
当我想做这个时:
{% if extend is true %}
{% extends 'WelcomePageBundle:Default:welcome_page.html.twig' %}
{% endif %}
它不起作用。为什么?
错误:
The test "false" does not exist in FOSUserBundle:ChangePassword:changePassword.html.twig at line 1