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

Revision #2 has been created by YiiJeka on Apr 22, 2014, 10:38:19 AM with the memo:

set version
« previous (#1)

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: 25 689 times
Version: 2.0
Category: How-tos
Written by: aarondfrancis
Last updated by: YiiJeka
Created on: Oct 16, 2013
Last updated: 9 years ago
Update Article

Revisions

View all history