before click on page 2 all is ok(besides pages and table data,there’other page content),
6403
but after click,it jump to a totally new page with only the data of page 2.
6404
whats wrong?
this is my code on grid
<?=GridView::widget([
'dataProvider' => $dataProvider,
/* 'pager'=>array( //通过pager设置样式 默认为CLinkPager
'prevPageLabel'=>'上一页',
'firstPageLabel'=>'首页', //first,last 在默认样式中为{display:none}及不显示,通过样式{display:inline}即可
'nextPageLabel'=>'下一页',
'lastPageLabel'=>'末页',
'header'=>'',
),
*/
'columns' => [
//['class' => 'yii\grid\SerialColumn'],
['attribute' =>'loan_type','label'=>'借款类型','options' => ['width' => '80']],
['attribute' =>'amount','label'=>'金额','options' => ['width' => '80']],
['attribute' =>'rate','label'=>'还款利率','options' => ['width' => '80']],
['attribute' =>'fee','label'=>'手续费','options' => ['width' => '80']],
['attribute' =>'status','label'=>'状态','options' => ['width' => '80'] ],
['attribute' =>'comment','label'=>'审核意见','options' => ['width' => '80']],
['attribute' => 'created_at','value' =>function($model){return date('Y-m-d',strtotime($model->created_at));},'
label'=>'申请时间','options' => ['width' => '150']],
['class' => 'yii\grid\ActionColumn','header' => '操作','headerOptions' => ['width' => '80']],
],
// ['class' => 'yii\grid\ActionColumn', 'header' => '操作', 'headerOptions' => ['width' => '80']],
]);
?>
how to solve it?