在我的视图代码中我有这个:
原文链接:https://www.f2er.com/php/133115.html<?= GridView::widget([ 'dataProvider' => $dataProvider,'columns' => [ ['class' => 'yii\grid\SerialColumn'],['label' => 'Training score','attribute' => 'scoreTraining','format' => ['decimal',2],],['label' => 'Exam score','attribute' => 'scoreExam',]);
是否可以在yii2 gridview中自定义标题行?所以我的标题行看起来像2行..
<table border=1> <tr><th>Training <br> score</th><th>Exam <br> score</th></tr> </table>