whiteoctober/WhiteOctoberPagerfantaBundle — Issue #33: render bug
Author: DmitryLanda
Created: 2011-12-16 08:30:57+00:00
State: open

An exception has been thrown during the rendering of a template
("Warning: array_merge(): Argument #2 is not an array in
[my_path]/symfony/vendor/bundles/WhiteOctober/PagerfantaBundle/Twig/PagerfantaExtension.php line 73")
in [my_view].html.twig at line 17.

in [my_view].html.twig at line 17 I have this code:
```
{{ pagerfanta(searchResults) }}
```

and in Pagerfanta at line 73:

$options['routeParams'] = array_merge($request->query->all(), $request->attributes->get('_route_params'));

unfortunately I haven't this var ('_route_params'). Might be you should tj set default option for 'get' method
for example:
```
$options['routeParams'] = array_merge($request->query->all(), $request->attributes->get('_route_params', array()));
```