在GridView组件中,更改
['class' => 'yii\grid\ActionColumn'],
改为:
//只显示查看图标
['class' => 'yii\grid\ActionColumn', 'template' => '{view}']
//查看修改图标
['class' => 'yii\grid\ActionColumn', 'template' => '{view}{update}']
在GridView组件中,更改
['class' => 'yii\grid\ActionColumn'],
改为:
//只显示查看图标
['class' => 'yii\grid\ActionColumn', 'template' => '{view}']
//查看修改图标
['class' => 'yii\grid\ActionColumn', 'template' => '{view}{update}']