knp Paginator rendering
<p>I'm getting an error with rendering knp paginator:</p>

<blockquote>
  <p><code>An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 2 passed to Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension::render() must be an instance of Knp\Bundle\PaginatorBundle\Pagination\SlidingPagination, array given, called in C:\wamp\www\TunisiaMall\app\cache\dev\twig\7b\87\136d965ad591aa95bee5c88d324ab4fe15f38a8af882bbdb9ef9f4ac9320.php on line 78 and defined in C:\wamp\www\TunisiaMall\vendor\knplabs\knp-paginator-bundle\Twig\Extension\PaginationExtension.php line 43") in TMallClientBundle:Default:detailBoutique.html.twig at line 29.</code></p>
</blockquote>

<p>here is code for the controller:</p>

<pre><code>public function boutiqueDetailAction(){


     $em = $this-&gt;getDoctrine()-&gt;getManager();
    $boutiq = $em-&gt;getRepository("TMallEntityBundle:boutique")-&gt;findAll();

     $boutique  = $this-&gt;get('knp_paginator')-&gt;paginate(
    $boutiq,
    $this-&gt;get('request')-&gt;query-&gt;get('page', 1)/*page number*/,
    2/*limit per page*/
);





    return $this-&gt;render("TMallClientBundle:Default:detailBoutique.html.twig",array("boutiques"=&gt;$boutiq));
}
</code></pre>