Hi this is my view
<?php
echo CHtml::ajaxButton(
'Friend Request',
CController::createUrl('userFriendAPI/FriendshipRequest'),
array(
'data'=>'js:{"ids" : "ABCD","YII_CSRF_TOKEN" : "'.Yii::app()->request->csrfToken.'"}',
'type'=>'POST'
)
);
?>
and this is my controller
class UserFriendAPIController extends JSONController{
public function actionFriendshipRequest($action){
}
}
when i press the button i got this error
I don’t know what is the problem any help please