title: ("Parameter "" for route "" must match "[^/]++" ("" given) using pagerfanta
body: <p>I'm attempting to get PagerFanta working to page my data. I can view the first page and the generated code in the <code>pagerfanta</code> portion generates all the correct links, however when I click on any of those corresponding links I get the exception in the title. It seems like the <code>pagerfanta</code> twig function is not giving the correct parameter when generating the routes.</p>
  
  <p>Controller action:</p>
  
  <pre><code>/**
       * @Route("/people/{page}", name="view_people")
       * @Template("AppBundle:Default:people.html.twig")
       */
      public function viewPeopleAction($page)
      {
          $people = $this-&gt;getDoctrine()
              -&gt;getRepository('AppBundle\Entity\Person')
              -&gt;findAll();
          $adapter = new ArrayAdapter($people);
          $pager = new Pagerfanta($adapter);
          $pager-&gt;setMaxPerPage(45);
  
          try {
              $pager-&gt;setCurrentPage($page);
          } catch(NotValidCurrentPageException $e) {
              throw new NotFoundHttpException();
          }
  
          return array('pager' =&gt; $pager);
      }
  </code></pre>
  
  <p>Twig page:</p>
  
  <pre><code>{% extends '::base.html.twig' %}
  
  {% block title %}{% endblock %}
  
  {% block body %}
      &lt;table&gt;
    {% for object in pager.currentPageResults %}
      &lt;tr&gt;
        &lt;td&gt;&lt;a href="{{ path('view_person', {'personid': object.id}) }}"&gt;{{ object.name }}&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
    {% endfor %}
  &lt;/table&gt;
  
  {% if pager.haveToPaginate %}
    {{ pagerfanta(pager, "twitter_bootstrap_translated", {"routeName": "view_people", "pageParameter": "[page]"} ) }}
  {% endif %}
  {% endblock body %}
  {% block javascripts %}
  {% endblock %}
  </code></pre>
  
  <p>Full error:</p>
  
  <pre><code>An exception has been thrown during the rendering of a template ("Parameter "page" for route "view_people" must match "[^/]++" ("" given) to generate a corresponding URL.") in AppBundle:Default:people.html.twig at line 15.
  
  500 Internal Server Error - Twig_Error_Runtime
  1 linked Exception:
  InvalidParameterException »
  
  [2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Parameter "page" for route "view_people" must match "[^/]++" ("" given) to generate a corresponding URL.") in AppBundle:Default:people.html.twig at line 15.   +
  
  [1/2] InvalidParameterException: Parameter "page" for route "view_people" must match "[^/]++" ("" given) to generate a corresponding URL.
  </code></pre>
  
  <p>What is wrong with my code that is causing this error?
  Any and all help greatly appreciated.</p>