accesses new

This commit is contained in:
akosse
2020-01-21 17:33:07 +03:00
parent 188758c79c
commit 6880eaa2ba
20 changed files with 575 additions and 98 deletions

View File

@ -30,21 +30,25 @@ $this->params['breadcrumbs'][] = $this->title;
'model' => $model,
'attributes' => [
'name',
'access',
[
'attribute' => 'userCard.fio',
'format' => 'raw',
'value' => function(\common\models\Accesses $model){
return $model->getUserCardName();
},
],
[
'attribute' => 'projects.name',
'format' => 'raw',
'value' => function(\common\models\Accesses $model){
return $model->getProjectName();
},
],
'login',
'password',
'link',
'project',
'info',
// [
// 'attribute' => 'userCard.fio',
// 'format' => 'raw',
// 'value' => function(\common\models\Accesses $model){
// return $model->getUserCardName();
// },
// ],
// [
// 'attribute' => 'projects.name',
// 'format' => 'raw',
// 'value' => function(\common\models\Accesses $model){
// return $model->getProjectName();
// },
// ],
],
]) ?>