Learning Yii here for my next project. I have managed to display the related data of a model as seen below. but i want to make the "'value' => $show," a link to the related model view. I tried placing CHtml::link('name', 'link') in many parts of the below but in the view, it shows the tags eg. <a href=""> </a> instead of making the link. any help would be amazing! Thanks!
<?php $descs = array(); foreach($model->shows as $shows) { $descs[] = $shows->Show_name; $id[] = $shows->ID; } $show = implode(', ', $descs); $this->widget('zii.widgets.CDetailView', array( 'data'=>$model, 'attributes'=>array( array( 'name' => 'Shows', 'value' => $show, ) ) )); ?>