public function actionCheckUserApprovalValue() { if (Yii::app()->request->isAjaxRequest && isset($_POST['userId']) && isset($_POST['clientId']) && isset($_POST['value'])) { $userId = intval($_POST['userId']); $clientId = intval($_POST['clientId']); $value = intval($_POST['value']); // check value $value = UsersClientList::checkUserApprovalValue($userId, $clientId, $value); echo $value; } }