title: How to pass data from twig to Symfony2 controller using form
body: <p>I would like to know if there is a method to pass some variables (text from textarea) from Twig to Symfony2 controller via form.</p>
  
  <pre><code>        &lt;form action="{{ path('admin_core_save') }}" method="post"&gt;
              &lt;div id="edit-template"&gt;
                  {% if template.getData() is defined %}
                      &lt;textarea id="template"&gt;{{ template.getData() }}&lt;/textarea&gt;
                  {% endif %}
              &lt;/div&gt;
  
              &lt;input type="submit" value="Save" /&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>When I press save button it is going to saveAction() method</p>
  
  <pre><code>public function saveAction(Request $request)
  {
      var_dump($request);
  
      return new Response('abc');
  }
  </code></pre>
  
  <p>but response does not contain any textarea text. Is there a way to get this there?</p>
  
  <p>I know I can build form inside the controller and send it to Twig, but I would like to know if this way is possible.</p>