can someone tell me how to display the $data in the button delete of the CGridview? i tryed to do that but i found that this is impossible because the "deleteconfirmation" zone is evalueted as a JS script not a PHP script. I explain my problem better :
this is my gridview :
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'esbilancio-grid',
'dataProvider'=>$dataProvider,
'emptyText' => 'Nessun contenuto',
'summaryText'=>'Totale {count} risultati',
'columns'=>array(
'anno_nome',
array(
'class'=>'CButtonColumn',
'template'=>'{update}{delete}',
'deleteButtonLabel' => 'Cancella',
'deleteConfirmation' => 'Attenzione: L\'eliminazione di anno [color="#FF0000"]$data->anno_name[/color] porterà i file abbinati a quell\'anno nella categoria generica "Archivio bilanci". L\'operazione non è reversibile. Desideri continuare?',
'updateButtonLabel' => 'Modifica',
),
),
));
The problem that the "'deleteConfirmation'" is not evaluated as a php script so it doesn't display the dynamic content.
How can i get the content of the $data in this case ?
if there is a better solution to display a confirm message containing the dynamic content i'll be hppy to know it

Help

















