lithium\action\Response::_init()

protected method

Sets the Location header using $config['location'] and $config['request'] passed in through the constructor if provided.

Returns

void

Source

	protected function _init() {
		parent::_init();
		$router = $this->_classes['router'];

		if ($this->_config['location']) {
			$location = $router::match($this->_config['location'], $this->_config['request']);
			$this->headers('Location', $location);
		}
	}