adding pagination on search + renaming option

This commit is contained in:
Julien Fastré 2016-08-25 22:16:46 +02:00
parent f442bf54b7
commit 10ea0c77e7
2 changed files with 17 additions and 11 deletions

View File

@ -74,3 +74,8 @@
</ul>
{% endif %}
{% if preview == false %}
{{ chill_pagination(paginator) }}
{% endif %}

View File

@ -120,7 +120,8 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface
'total' => $total,
'start' => $start,
'search_name' => self::NAME,
'preview' => $options[SearchInterface::SEARCH_PREVIEW]
'preview' => $options[SearchInterface::SEARCH_PREVIEW_OPTION],
'paginator' => $paginator
));
}