lithium\action\Request::to()
Overrides
lithium\net\Message::to()
Overrides lithium\net\http\Request::to()
to provide the correct options for generating
URLs. For information about this method, see the parent implementation.
Parameters
-
string
$format
The format to convert to.
-
array
$options
Override options.
Returns
mixedThe return value type depends on $format
.
Source
public function to($format, array $options = []) {
$defaults = [
'path' => $this->env('base') . '/' . $this->url
];
return parent::to($format, $options + $defaults);
}