-
Notifications
You must be signed in to change notification settings - Fork 110
Pagination inside an embedded Controller #186
Comments
Thanks for getting in touch, @amirkoklan. ESI is not an area of Symfony we're particularly knowledgeable in, and I'm afraid we don't have the time for the in-depth investigation that this issue would require. Hopefully someone else in the community can help, or do post back yourself if you make any progress here, as it may well help others. Sorry not to be more help, |
this also happens for "normal" embedded controllers, so it is no ESI issue.
|
the problem lies in
v1we can solve this problem by adding a flag like "useMasterRequest" and then call
v2because i don't want to maintain a fork i build a workaround, instead of changing the code of the twig extension, i created a new twig extension which provides a function to expose the master request in twig and set all options in the twig template for the pager:
|
Thanks for your investigations here, @c33s. Could v1 be achieved by creating an additional option for the extension which can be passed when rendering? If so, I'd gladly merge a PR with that change if you're able to make one. |
Hi There,
I want to have pagination inside an embedded Controller in the template
{{ render_esi(controller('DFMVapBundle:Embeded/Contract:listContracts')) }}
but it is giving me this error only when there is more than 1 page to navigate to.is there a way to do that?
The text was updated successfully, but these errors were encountered: