Customize Delete In Curd

hi i changed create link on CURD Using CHtml like this


array('label'=>'List Company', 'url'=>array('index')),);

[color="#FF0000"] <?php echo CHtml::link(‘Create Company’, array(‘create’)); ?> </p>[/color]

now i need to change delete link like Create how customize using CHtml

array(‘label’=>‘Delete Company’, ‘url’=>’#’, ‘linkOptions’=>array(‘submit’=>array(‘delete’,‘id’=>$model->id),‘confirm’=>‘Are you sure you want to delete this item?’)),

thanks YII…

[color="#006400"]/* Moved from "Bug Discussions" to "General Discussion for Yii 1.1.x" */[/color]

here this should do it

<?php echo CHtml::link('Delete', '#', array(

	'submit'=>array('delete', 'id'=>$model->id),

	'confirm'=>'Are you sure?'