sampart / BreadcrumbsBundle

A small breadcrumbs bundle for Symfony
Other
188 stars 68 forks source link

Render Controller #74

Closed bogdaniel closed 8 years ago

bogdaniel commented 8 years ago

Is it posible to call render controller on the action that holds the pagination and if yes then how because i'm getting this error:

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "" as such route does not exist.") in @AppBundle\Survey\table_questions.html.twig at line 27.

bocharsky-bw commented 8 years ago

Hey @bogdaniel , looks like this issue doesn't relate to this bundle

bogdaniel commented 8 years ago

well on the line 27 i have {{ pagerfanta(pager, 'twitter_bootstrap3') }}

By default, the "page" variable is also added for the link to the first page. To disable the generation of ?page=1 in the url, simply set the omitFirstPage option to true when calling the pagerfanta twig function:

In my case i'm using render(controller()) to show the pagination on the page that i need so prob it can't find the current route or something ..