1. Format HTML

echo CHtml::link(‘Link Text’,array(‘controller/action’));

2. Hyperlink memiliki Nilai/ID yang akan dikirim

echo CHtml::link(‘Link Text’,array(‘controller/action’, ‘param1’=>’value1’));

3. Hyperlink akan membuka new window

echo CHtml::link(‘Link Text’,array(‘controller/action’, ‘param1’=>’value1’), array(‘target’=>’_blank’);

4. Delete dengan konfirmasi

echo CHtml::link(‘Delete’,”#”, array(“submit”=>array(‘delete’, ‘id’=>$data->ID), ‘confirm’ => ‘Are you sure?’));

 

Sumber : http://vient.lilaonshop.com/2012/07/25/membuat-hyperlink-di-yii/