lithium\action\Response::_init()
Overrides
lithium\core\Object::_init()
Sets the Location header using $config['location']
and $config['request']
passed in
through the constructor if provided.
Returns
voidSource
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);
}
}