Difference between #1 and #2 of
Automatic Parameter Binding to POST vars in Yii2

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.
0 0
4 followers
Viewed: 26 333 times
Version: 2.0
Category: How-tos
Written by: aarondfrancis
Last updated by: YiiJeka
Created on: Oct 16, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history