title: Symfony anchor path no integer allowed?
body: <p>When I try to run the following code and see what it looks like in the browser:</p>
  
  <p><code>&lt;a href="{{ path('movies', {'pageNumber': 1}) }}" class="active"&gt;{{ currentPage }}&lt;/a&gt;</code></p>
  
  <p>This would render:</p>
  
  <p><code>&lt;a href="/app_dev.php/movies" class="active"&gt;1&lt;/a&gt;
  </code></p>
  
  <p>It looks like integers cannot be passed in the path variable of a Twig Template like this (goal: </p>
  
  <p><code>&lt;a href="/app_dev.php/movies/1" class="active"&gt;1&lt;/a&gt;</code></p>
  
  <p>)?</p>
  
  <p>When I enter</p>
  
  <p><code>&lt;a href="{{ path('movies', {'pageNumber': 'foo'}) }}" class="active"&gt;{{ currentPage }}&lt;/a&gt;</code></p>
  
  <p>it renders <code>&lt;a href="/app_dev.php/movies/foo" class="active"&gt;1&lt;/a&gt;</code></p>
  
  <p>So the last example works perfectly fine but whenever I make use of an integer it doesn't work? Am I doing something wrong?</p>
  
  <p>Routing:</p>
  
  <pre><code>movies:
      path:     /movies/{pageNumber}
      defaults: { _controller: AppBundle:MovieDisplay:show, pageNumber: 1 }
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>public function showAction(Request $request, $pageNumber)
  {
      //some code here...
  
      return $this-&gt;render('movies/index.html.twig', array(
      //some other parameters here
      'pageNumber' =&gt; $pageNumber
      ));
  }
  </code></pre>
  
  <p>Thanks in advannce.</p>