Changes
Title
unchanged
Automatic Parameter Binding to POST vars in Yii2
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, controllers
Content
unchanged
[...]
$params = array_merge($_POST, $params);
parent::runAction($id, $params);
}
```
You can either add this to your particular controller that you'd like to automatically bind POST vars to, or you can create a base controller and extend all your other controllers off of that.