lithium\action\Request::to()

public method

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

mixed

The 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);
	}