<?php use yii\widgets\DetailView; use app\helpers\Html; $controller = $this->context; $request = \Yii::$app->request; $listUrl = [$controller::URL_TO_INDEX]; $title = $controller->t('USER {login}', ['login' => Html::encode($model->login)]); $urlToDelete = [$controller::URL_TO_DELETE, 'id' => $model->id, $request->csrfParam => $request->getCsrfToken()]; $this->params['breadcrumbs'] = [['label' => $controller->t($controller::TITLE), 'url' => [$controller::URL_TO_INDEX]], ['label' => $controller->t('SHOW_USER')]]; ?> <br> <?php echo Html::listButton(['url' => $listUrl, 'text' => $controller->t('LIST_USERS')]); ?> <h1> <?php echo Html::glyphicon('user'); ?> <?php echo $title; ?> </h1> <div class="row detail-view-complex"> <div class="col-xs-6"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'login', ['attribute' => 'enabled', 'value' => $model->formatEnabled()], ['attribute' => 'groups', 'value' => $model->formatGroups()], 'created_dt']]); ?>