Welcome Guest, Not a member yet? Register   Sign In
TWIG
#1

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 %}
<
div class="notification is-danger">
{{ 
validation_list_errors() }}
</
div>
{% endif %} 

While this does not :
PHP Code:
  {% if validation.hasError("fichier") %}
      <div class="notification is-danger">{{ validation.getError("fichier") }}</div>
  {% endif %} 
can someone see the mistake I make ?
Reply


Messages In This Thread
TWIG - by foxbille - 03-26-2024, 01:23 PM
RE: TWIG - by kenjis - 03-26-2024, 03:16 PM
RE: TWIG - by foxbille - 03-29-2024, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB