Commit ed2bcdd5 authored by Shakarim Sapa's avatar Shakarim Sapa

- Исправлен вывод виджета

parent 308ea6df
<?php <?php
use common\modules\users\models\User; use common\modules\users\models\User;
use yii\widgets\DetailView;
$this->title = "Просмотр Пользователя: {$model->name}"; $this->title = "Просмотр Пользователя: {$model->name}";
\Yii::$app->controller->tabs = array( \Yii::$app->controller->tabs = array(
...@@ -14,7 +16,7 @@ if(!empty($_GET['is_created'])) { ...@@ -14,7 +16,7 @@ if(!empty($_GET['is_created'])) {
</span>'; </span>';
} }
$this->widget('application.components.DetailView', array( echo DetailView::widget(array(
'data' => $model, 'data' => $model,
'attributes' => array( 'attributes' => array(
'fio', 'fio',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment