Answer the question
In order to leave comments, you need to log in
How to properly format output records in yii2?
Greetings! When using the DetailView widget, I set the value of the description:ntext attribute and the text is displayed normally with line breaks. When using the ListView widget, I did not find a similar attribute, the code is something like this
ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_workitem',
'summary' => false,
]);
= Html::encode($model->gdescription) Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question