Yii2 多页

Yii2 multiple paginations

控制器中如何使用多页分页? 我遇到了以下错误。

设置未知属性:yii\widgets\LinkPager::专家分页

在控制器中:

$count=$query_comment->count();
$pagination=new Pagination(['totalCount' => $count, 'defaultPageSize' => 2]);
$models_comment = $query_comment->offset($pagination->offset)
      ->limit($pagination->limit)
      ->all();
      $count_expert=$query_expert->count();
$expertpagination=new Pagination(['totalCount' => $count_expert, 'defaultPageSize' => 2]);
$models_expert = $query_expert->offset($expertpagination->offset)
      ->limit($expertpagination->limit)
      ->asArray()->all();
return $this->render('product',['id'=>$id,
            'table_name' => $table_name ,
            'models2'=>$models2,
            'models3'=>$models3,
            'pagination'=>$pagination,
            'expertpagination'=>$expertpagination,
            'models_comment' => $models_comment ,
            'model_expert' => $model_expert ,
            'models_expert' => $models_expert
        ]);

属性总有相同的名称是然后改变的内容:

      <?php 
            echo LinkPager::widget([ 'pagination' => $expertpagination, ]); 
      ?> 

      <?php 
              echo LinkPager::widget([ 'pagination' => $pagination, ]);
       ?>