title: Image in gridview in yii2
body: <p>How to put an image in GridView in yii2?I have the following code. But its not displaying the image as it is not giving any image url. Where to put the image url?</p>
  
  <pre><code> &lt;?php echo GridView::widget([
      'dataProvider' =&gt; $dataProvider,
      'filterModel' =&gt; $searchModel,
      'columns' =&gt; [
          ['class' =&gt; 'yii\grid\SerialColumn'],
  
          'c_id',
          'name:ntext',
          'description:ntext',
          array(
                  'format' =&gt; 'image',
                 'attribute'=&gt;'logo',
  
  ),
  
          ['class' =&gt; 'yii\grid\ActionColumn'],
      ],
  ]); ?&gt;
  </code></pre>