Unable to verify your data submission error
Create one public function in Yii2. But, submit data not accept in this method, see following error images. Why is this happen?
If you create the form manually (i.e. without using the yii form methods), you should add an input field like this:
<input type="hidden" name="_csrf" value="<?=Yii::$app->request->getCsrfToken()?>" />
source: http://zero-exception.blogspot.com/2015/01/yii2-using-csrf-token.html
1.4m articles
1.4m replys
5 comments
57.0k users