How to add additional action in CButtonColumn?


(Er_Avinash) #1

i have done but give and error


(Er_Avinash) #2

[
‘class’ => ‘CButtonColumn’,
‘template’=>’{ dialog }’,
‘dialog’ =>
[
‘label’=>’!’,
‘imageUrl’=>Yii::app()->request->baseUrl.’/images/email.png’,
‘url’=> ‘’/audit/auditReport/history/’.$data->primaryKey’,
],
],


(Alexander Makarov) #3

Would you please post full error message including file, line and stacktrace?


(Er_Avinash) #4

i have done sir…thank u for your response …:slightly_smiling_face:


(Fredyr69) #5
<?= \yii\helpers\Html::a('', ['/model/accion','id'=>$row->id], ['options' => ['data' => ['method' => 'post','confirm' => 'Are you sure?',],],]) ?>