I\'m new to programming, and I\'m trying to call a function when the user inputs data and clicks submit button. I\'m using Yii2 and I\'m not familiar with Ajax. I tried deve
The correct way to get the CSRF param is this:
data[yii.getCsrfParam()] = yii.getCsrfToken()