yii2 - check if request is post

yii2
voted: 0
vote
php yii2 post

Check if request is post.

if (Yii::$app->request->post()){
        //request is post
}
else{
        //request is not post
}
working url: not entered
version: 2
Leave a Comment:
Characters left:
No comments yet.