title: bootstrap.widgets.TbDetailView, Yii app
body: <p>Model--</p>
  
  <pre><code>enter code here
   public function searchShop()
  {
          $criteria = new CDbCriteria();
              $criteria-&gt;compare("name", $this-&gt;category, TRUE, "OR");
                  $criteria-&gt;compare("shopname", $this-&gt;category, TRUE, "OR");
                      $criteria-&gt;compare("category", $this-&gt;category, TRUE, "OR");
  
              return Shops::model()-&gt;findAll($criteria);  
  }
  </code></pre>
  
  <p>code----</p>
  
  <pre><code>enter code here
  &lt;?php 
  foreach($models as $model):
      $this-&gt;widget(
  'bootstrap.widgets.TbDetailView',
  array(
  'type'=&gt;'bordered condensed',
  'data' =&gt; array(
  'id' =&gt;array('view', 'id'=&gt;$model-&gt;ID),
  'Shop Name' =&gt; $model-&gt;shopname,
  'Category' =&gt; $model-&gt;category,
  'ID' =&gt; CHtml::link(CHtml::encode($model-&gt;ID), array('view', 'id'=&gt;$model-&gt;ID))
  ),
  'attributes' =&gt; array(
  array('name' =&gt; 'Shop Name', 'label' =&gt; 'Shop name'),
  array('name' =&gt; 'Category', 'label' =&gt; 'Category'),
  array('name' =&gt; 'ID', 'label' =&gt; 'ID'),
  ),
  )
  );
  
  echo "&lt;br&gt;&lt;hr&gt;&lt;br&gt;";
   endforeach;
   ?&gt;
  </code></pre>
  
  <hr>
  
  <p>I want a link on ID by clicking on it it will render view file i.e view.php of shops model</p>
  
  <p>I used CHtml::link(CHtml::encode($model->ID), array('view', 'id'=>$model->ID)) but it is showing path of that view as <a href="/myapp/index.php/shops/1">1</a></p>
  
  <p>help me...
  thanks in advance</p>