I have done up a pagination system and am using the LinkPager widget, however this is generating links with ??
at the start instead of ?
as it should.
This appears to be because of my UrlManager rule:
'foo/<name:[0-9a-zA-Z\-]+>.<some_id:\d+>/?' => 'foo/index',
I need to include that ?
on the end or it can't resolve the page with an ending slash.
Here is how I am calling LinkPager
:
LinkPager::widget(['pagination' => $pagination, 'options' => ['class' => 'clearfix']]);
Where $pagination
is obviously the Pagination instance.
Is there any way I can stop it including the double question marks?