TWIG |
Hello,
I use twig for one of my app, but still encounter some difficulties, In the same form, when error on "fichier" field occurs, this, prints errors : PHP Code: {% if validation == false %} While this does not : PHP Code: {% if validation.hasError("fichier") %}
Use dump() and see what is the variable.
See https://twig.symfony.com/doc/3.x/functions/dump.html
Shame on me!
there was an ugly $validation = false; in my controller code. i'm tired. Thanks for reply. |
Welcome Guest, Not a member yet? Register Sign In |