Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In your view I feel like you shouldn't use <code>form(form)</code> inside of <code>form_start(form)</code> and <code>form_end(form)</code>. I believe that would generate the <code>&lt;form&gt;</code> tag twice</p> <p><strong>Old answer:</strong></p> <p>Idk what your twig looks like but I'm assuming somehow the error in the form row isn't being displayed. <a href="http://symfony.com/doc/current/book/forms.html#rendering-a-form-in-a-template" rel="nofollow">http://symfony.com/doc/current/book/forms.html#rendering-a-form-in-a-template</a> talks about it.</p> <p>From the link:</p> <pre><code>{# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #} {{ form_start(form) }} {{ form_errors(form) }} {{ form_row(form.task) }} {{ form_row(form.dueDate) }} {{ form_end(form) }} Take a look at each part: form_start(form) - Renders the start tag of the form. form_errors(form) - Renders any errors global to the whole form (field-specific errors are displayed next to each field); form_row(form.dueDate) - Renders the label, any errors, and the HTML form widget for the given field (e.g. dueDate) inside, by default, a div element; form_end() - Renders the end tag of the form and any fields that have not yet been rendered. This is useful for rendering hidden fields and taking advantage of the automatic CSRF Protection. </code></pre> <p>form_row can be split into each of its parts:</p> <pre><code>&lt;div&gt; {{ form_label(form.task) }} {{ form_errors(form.task) }} {{ form_widget(form.task) }} &lt;/div&gt; </code></pre> <p>and the form_errors() function should display what you want.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload