Use 'Yii::$app->request->post()' instead of $_POST
Merge pull request #2457 from Theill11/update-gii-templates

Use 'Yii::$app->request->post()' instead of $_POST