title: symfony2 twig path with parameter url creation
body: <p>i got the following:</p>
  
  <pre><code>&lt;a href="{{ path('_be_activatecategory', {'id': category.id, 'active': 1}) }}"&gt;Aktivieren&lt;/a&gt;
  </code></pre>
  
  <p>creates</p>
  
  <blockquote>
    <p>/backend/categories/activate/8/1</p>
  </blockquote>
  
  <p>and then i got</p>
  
  <pre><code>&lt;a href="{{ path('_category', {'id': category.id}) }}"&gt;
  </code></pre>
  
  <p>which creates</p>
  
  <blockquote>
    <p>/category?id=1</p>
  </blockquote>
  
  <p>see the difference? what i want is in the second case exactly like in the first:</p>
  
  <blockquote>
    <p>/category/1</p>
  </blockquote>
  
  <p>how can i manage this? why didnt the path() helper creates the correct url with parameters for me?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>my routing looks like this:</p>
  
  <pre><code>/**
   * @Route("/category/{id}", name="_category")
   * @Template()
   */
  public function categoryAction($id)
  {
  </code></pre>