title: image link in Yii framework
body: <p>hello friends I am newbie to YII. I have an image . After calling that image in Yii its code like is this </p>
  
  <pre><code>&lt;img class="deals_product_image" src="&lt;?php echo MPFunctions::uploaded_image_url($data-&gt;item_display_image()-&gt;file_ufilename); ?&gt;" alt="&lt;?php echo $data-&gt;name; ?&gt;" /&gt;
  </code></pre>
  
  <p>in general html it is doing like this </p>
  
  <pre><code>&lt;img alt="women jackets" src="files/items/images/4db3b3b6a7c06/womens-jacket-thumb.jpg" class="deals_product_image"&gt;
  </code></pre>
  
  <p>Now I want that this image should be a href link like</p>
  
  <pre><code> &lt;a href="files/items/images/4db3b3b6a7c06/womens-jacket-thumb.jpg img src="files/items/images/4db3b3b6a7c06/womens-jacket-thumb.jpg class="deals_product_image"/&gt; &lt;/a&gt;
  </code></pre>
  
  <p>so for this I used code  like this </p>
  
  <pre><code>&lt;?php echo CHtml::link('', array('items/viewslug', 'slug'=&gt;$data-&gt;slug)); ?&gt;
  </code></pre>
  
  <p>But it is not showing any link tag like <code>&lt;a href=""&gt;</code>
  so can any one tell me what should I do?What should I write in between <code>''</code> tags?</p>