Hi guys,follwong code will read out content of email being in table. Content of mail is about several lines,of course, so my intention ist to break line(<br> ‘\n’) after a point in mail(see my attachement) Do I have to use highly diverse string functions of php or can I achieve my intention with framework?
Any ideas, how to get my intention with yii2?
I Try like this, but this is not,as it should be
[
'attribute' => 'bodytext',
'label' => Yii::t('app', 'Mailinhalt'),
'contentOptions' => [
'style' => ['max-width' => '200px;']],
'value' => function($model) {
if ($model->bodytext) {
return $model->bodytext;
} else {
return NULL;
}
},
],