Array to string error when using conditions inside twig’s form_

Wasn’t this condition (inside the form_label and form_widget) supposed to work?

enter image description here

I’m getting "An exception has been thrown during the rendering of a template ("Notice: Array to string conversion")." error when it’s true.

Any ideas what am I doing wrong?

Thanks in advance!

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *