I have this code:
$dataProvider,
\'filterModel\' => $searchModel,
\'columns\' => [
[\
I think I got the solution:
The code:
'value'=>function ($data) {
return Html::url('site/index');
},
Should be a bit modified. Let say your field name in array 'country', then code should be like this:
'value'=>function ($data) {
return Html::a($data['country'], ['site/index']);
},
So instead of Html::url I used Html::a and added value of the hyperlink as $data['country']. Hope this helps.