'components'=>array(
'request'=>array(
'enableCsrfValidation'=>true,
'enableCookieValidation'=>true,
),
When i using enableCsrfValidation,the CHtml::linkButton make an error.
this is my code:
<?php echo CHtml::linkButton('Delete',array(
'submit'=>'',
'params'=>array('command'=>'delete','id'=>$model->id),
'confirm'=>"Are you sure to delete #{$model->id}?")); ?>
When i click ‘Delete’,it display a error:
How to fix this error? thank you.