• Yii Framework

    How to add image to dashboard using Yii

    Images (stored in a folder of my web-project) via a GridView in Yii2. The images are associated to an URL which is stored in a database … MySQL -> Platform table: ID | Name | Img (Image’s URL) [ ‘attribute’ => ‘col_6’, ‘format’ => ‘html’, ‘label’ => ‘ImageColumnLable’, ‘value’ => function ($data) { return Html::img(‘/ss/frontend/images/’ . $data[‘col_6’], [‘width’ => ’60px’]); }, ],