J
J
JohnDaniels2018-07-14 13:57:43
Yii
JohnDaniels, 2018-07-14 13:57:43

Why is yii2 hiding images?

I display image thumbnails in gridView:

[
        'attribute' => 'Изображение',
        'format' => 'raw',
        'value' => function($model){
            /* @var $model \common\models\Banner */
            return '<img src="'.$model->thumb(150, 300).'">';
        }
],

I get pies like this:
5b49d6facd932353851247.png5b49d5b0648f3617948340.png
Where does it come from
style="display: none !important;"
?
And I can't even remove it in the inspector.
In chrome, it looks like this,
5b49d64ac7a49428014987.png
if you follow the link, it will open the picture without problems. The rights to the folder are 777. I use AdminLTE.
help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Mosyukov, 2018-07-14
@GeneMoss

Most likely, you have some kind of AdBlock installed in your browser, which “cuts out” banners for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question