Getting input with a decoding function:
$this->request->input('json_decode');
Getting input using a decoding function, and additional params:
$this->request->input('Xml::build', array('return' => 'DOMDocument'));
Any additional parameters are applied to the callback in the order they are given.
public input ( string $callback = null ) : The | ||
$callback | string | A decoding callback that will convert the string data to another representation. Leave empty to access the raw input data. You can also supply additional parameters for the decoding callback using var args, see above. |
return | The | decoded/processed request data. |