Answer the question
In order to leave comments, you need to log in
How to add your ID to ActionColumn?
I am using SQLDataProvider and GridView.
Inserted into GridView:
'columns' => [
// ...
[
'class' => ActionColumn::className(),
],
]
Answer the question
In order to leave comments, you need to log in
'columns' => [
// ...
[
'class' => ActionColumn::className(),
'buttons' => [
'view' => function($url, $model, $key){
return Html::a('View', ['sotrudniki/view', 'code' => $model->id);
}
]
],
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question