There is a DetalView widget:
<?= DetailView::widget([ 'model' => $model, 'attributes' => [ 'information:ntext', [ 'attribute' => 'text', 'value' => $model->getUserAttributes('getScientificWorks', 'text'), ], ], ]) ?> The getUserAttributes method returns a string:
$string .= $item[$field] . ", "; If instead of a comma to insert a line break tag, it will appear as "text <ВR> text" Actually, I need to insert a line break.
attributeandvalueinsert'format'=>'raw',will it help? - Alexey Shimansky