If a request is sent via Accept: application/json; version=v1,
After content negotiation, yii\web\Response::$acceptParams
will contain the value ['version' = > 'v1'].
But it is empty after printing. What is the reason?
1 2 |
|
PHP中文网2017-05-16 13:13:16
1 2 |
|