title: Displaying image in a CGridView column
body: <p>Here is my code</p>
  
  <pre><code>$img= Yii::app()-&gt;params['questionImageUploadURL'].$model-&gt;q_type."/".$model-&gt;qImgRel-&gt;image_name;
  &lt;?php $this-&gt;widget('zii.widgets.CDetailView', array(
      'data'=&gt;$model,
      'attributes'=&gt;array(
          'id',
          'q_nationality_id',
          'q_type',
          'q_name',
          array(
              'name'  =&gt; 'q_image_id',
              'value' =&gt; (is_object($model-&gt;qImgRel)?CHtml::image($img,""):""),
              'visible'=&gt;(is_object($model-&gt;qImgRel)?true:false),
          ),
          'opt1',
          'opt2',
          'opt3',
          'opt4',
          'answer',
      ),
  )); ?&gt;
  </code></pre>
  
  <p>Its display me like this
  <img src="https://i.stack.imgur.com/RsfSA.png" alt="enter image description here"></p>
  
  <p>I dnt get image in my view
  plz help me
  Thanks in advance :)</p>