Код: Выделить всё
<?= DetailView::widget([
'model' => $model,
'template'=>'<tr><td>{value}</td></tr>',
'attributes' => [
[
'attribute' => 'content',
'format' => 'html',
],
],
]) ?>
Код: Выделить всё
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}