Can A Link Be Displayed In Cdetailview?

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&amp;id=1">1</a>




array(

    'name'=>'item_id',

    'type'=>'html',

    'value'=>CHtml::link(CHtml::encode($model->item_id),

        array('item/view', 'id'=>$model->item_id))

),



Note the type attribute.

Thanks Keith! It worked!