achievements add image to index page

This commit is contained in:
iironside
2022-03-10 11:08:04 +03:00
parent c4d35ace86
commit 1e15d376fd
3 changed files with 599 additions and 1 deletions

View File

@ -21,7 +21,14 @@ $this->params['breadcrumbs'][] = $this->title;
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'id',
[
'attribute' => 'img',
'format' => 'raw',
'value' => function ($model) {
return Html::tag('img', null, ['src' => $model->img, 'width' => '100px']);
}
],
'title',
'slug',
'description',