Hi cant put this to work
<?php
echo CHtml::button('Open Dialog', array('id'=>"dialog",
'onclick' =>'js:{ alert('.$data->body_content.'); return false;}
',
));
?>
it gives me a undefined "something string here " if i change my $data->body_contetn to $data->id it works so evrything else that is not a integer it gives me a undefined