Skip to main content

Yii Cheat Sheet

Grid View

'attribute' => 'no_answered',
'label' => '#vragen',
'headerOptions' => ['style' => 'width:60px;'],
'format' => 'raw',
'value' => function ($model) {
  return Html::a($model->no_answered.'/'.$model->no_questions, ['submission/update', 'id' => $model->id]);
  return $model->no_answered.'/'.$model->no_questions;
},