Hi,
I’m using kartik gridview and i have a problem. I’m counting hours and minutes and in the page summary if i have more than 60 minutes i need to sum values to hours column. Here you have a image:
The last column is the sum of hour * 60 + minutes
From that i can calculate hour and minutes using module function but i dont know how to apply that function to the value i have in the summary. This is the las column formulacolumn value:
‘value’=>function ($model, $key, $index, $widget) {
$p = compact('model', 'key', 'index');
return $widget->col(4, $p) * 60 + $widget->col(5, $p);
},
Can someone help me?
Thank you!