Monthly Archives: August, 2019

Yii2 Custom Action Button

Use the following format code to make custom action button in Gridview: [ ‘class’ => ‘yii\grid\ActionColumn’, ‘header’ => ‘Actions’, ‘headerOptions’ => [‘style’ => ‘color:#337ab7’], ‘template’ => “{update} {print} {delete}”, ‘buttons’ => [ ‘view’ => function ($url, $model) { return Html::a(‘<span class=”glyphicon glyphicon-eye-open”></span>’, $url, [ ‘title’ => Yii::t(‘app’, ‘lead-view’), ]); }, ‘update’ => function ($url, $model) { return…