CButtonColumn Assign Id

Hello everyone. I am attempting to assign an id to one of my CbuttonColumn icons with the following code:


'details'=>array(

	'label'=>'View Details',

	'imageUrl'=>Yii::app()->request->baseUrl.'/images/icons/16x16/details.png',

	'url'=> 'Yii::app()->createUrl("linesWln/view", array ("id"=>$data->id))',

	'options'=>array('class'=>'colorbox_details','id'=>'$data->id')

	),

However when I look at the source code created by yii, it actually creates:

[html]id="$data->id"[/html]

Instead of the actual id from the database.

Any ideas?

try:


'details'=>array(

	'label'=>'View Details',

        'type'='raw',

        //~~~

	),

ref:here

Thanks rootbear for the suggestion. I tried adding:


'type'=>'raw'

but the id is still getting declared in the source as:

[html]id="$data->id"[/html]

how about, this?




'id'=>$data->id,



I get the following stack trace error:

Undefined variable: data

wait a minute,should it be htmlOptions?


'details'=>array(

        'label'=>'View Details',

        'imageUrl'=>Yii::app()->request->baseUrl.'/images/icons/16x16/details.png',

        'url'=> 'Yii::app()->createUrl("linesWln/view", array ("id"=>$data->id))',

        'htmlOptions'=>array('class'=>'colorbox_details','id'=>'$data->id')

        ),

Thanks again rootbear. I initially tried the htmlOptions, and it have no effect on the button. Did not even assign it the class or id.

Any other ideas? Thank you again for your help.