I
I
idaho2017-09-11 08:07:01
Yii
idaho, 2017-09-11 08:07:01

Yii2 how to set data-attribute html?

There is a problem.
how to set output format in html?
i.e. it works 'format' => 'html'fine in widgets,
but if you output
<?php echo Html::encode( $model->titles:html); ?>
how to connect the format or attribute in this case ??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
idaho, 2017-09-11
@idaho

Thank you, but there is not at least a piece of code to solve the issue.

M
Maxim Fedorov, 2017-09-11
@Maksclub

Formatting data in Yii2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question