E
E
EVOSandru62015-05-13 04:15:40
Yii
EVOSandru6, 2015-05-13 04:15:40

How to display pictures and tags in ListView?

Good afternoon,
I have tags coming out with the standard output of the contents of the ListView fields , and not as it should be (decoding like). How and where to do decoding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marble, 2015-05-13
@EVOSandru6

It is not very clear what is meant by decoding. For a ListView, you can create an entry template like this:

echo ListView::widget([
'itemView' => function ($model, $key, $index, $widget) {
  return $this->render('_list', ['model' => $model]);
},

next to the template, where you call listview, put _list.php and there you make the layout of the line for output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question