Я новичок в yii2. Я пытаюсь заключить данные таблицы GridView в тег привязки.
<?= GridView::widget([
// is there any property that can be set to achieve this?
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class'=>'yii\grid\SerialColumn'],
['attribute' => 'customer_user_name2',],
],
]); ?>
Данные должны отображаться на странице html, как показано ниже.
<td> <!-- how to add this? --> <a>data</a> </td>
Спасибо.