$_request
$_request : \Cake\Http\ServerRequest
The request object.
Provides a context provider that does nothing.
This context provider simply fulfils the interface requirements that FormHelper has and allows access to the request data.
$_request : \Cake\Http\ServerRequest
The request object.
__construct(\Cake\Http\ServerRequest $request, array $context)
Constructor.
| \Cake\Http\ServerRequest | $request | The request object. |
| array | $context | Context info. |
val(string $field) : mixed
Get the current value for a given field.
Classes implementing this method can optionally have a second argument
$options. Valid key for $options array are:
default: Default value to return if no value found in request
data or context record.schemaDefault: Boolean indicating whether default value from
context's schema should be used if it's not explicitly provided.| string | $field | A dot separated path to the field a value is needed for. |