Hello,
I want to change the default url in the pagination links on listview widget to address muliple listiviews on one page.
I thought the ‘route’ on this page might work but it does not.
http://www.yiiframework.com/doc-2.0/yii-data-pagination.html
I have listview configured as follows…
echo ListView::widget([
'dataProvider' => $questionResults,
'itemOptions' => ['tag' => false], //removed for sorting
'itemView' => '/questions/_questionlistview',
'pager' => [
'class' => \yii\widgets\LinkPager::className(),
'pagination' => [
'class' => \yii\data\Pagination::className(),
'route' => 'new_controller_here',
],
],
.....
Anyone know how i can change the default controller/action of the paging links?
Regards,
Dennis