title = Yii::t('backend/key', 'Keys'); $this->params['breadcrumbs'][] = $this->title; ?>

title) ?>

render('_search', ['model' => $searchModel]); /* ezt megcsinálni hogy csak numberre lehessen itt a fitness-web/backend/views/key/_search.php töltődik be */?>

'btn btn-success']); ?>

$dataProvider, //'filterModel' => $searchModel, // ezt nem szeretjük 'columns' => [ // ['class' => 'yii\grid\SerialColumn'], // 'id_key', 'number', 'rfid_key', [ 'attribute' => 'status', 'value' => function ($model, $key, $index, $column){ $statuszok = Key::statuses(); $result = $statuszok[$model->status]; return $result; } ], //'status', [ 'attribute' =>'type', 'value' =>'humanType' ], 'created_at', // 'updated_at', [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view} {update}', ], ], ]); ?>