Hi all,
I tried to display a link in a CDetailview but it does not work. Is there a way of doing it?
I used this code:
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
'date',
'name',
array('name'=>'item_id', 'value'=>CHtml::link(CHtml::encode($model->item_id), array('item/view', 'id'=>$model->item_id))),
Instead this is what is displayed:
<a href="/testdrive/index.php?r=item/view&id=1">1</a>