Quantcast
Viewing all articles
Browse latest Browse all 60

YII2 form generate _csrf for form manually

YII2 form generate _csrf for form manually

<form action='#' method='POST'>
<input type="hidden" name="_csrf" value="<?=Yii::$app->request->getCsrfToken()?>" />
....
</form>

Viewing all articles
Browse latest Browse all 60

Trending Articles