title: How to acess Symfony 2 formview.valid variable in twig template
body: <p>I have tried to use the variable <code>form.valid</code> in a twig template rendering a form, but I get an error starting with</p>
  
  <blockquote>
    <p>Method "valid" for object "Symfony\Component\Form\FormView" does not
    exist</p>
  </blockquote>
  
  <p>Here is the code generating this error</p>
  
  <pre><code>{% if form.valid == false %}
    &lt;p class="error"&gt; There is an error in the form. please Correct. &lt;/p&gt;
  {% endif %}
  </code></pre>
  
  <p>So my question is: is this variable already available or we have to explicitly set it in the controller, or am I doing something wrong?</p>
  
  <p>Thanks in advance.</p>