Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Fins
Fins.Response

Method Fins.Response()->redirect()


Method redirect

void redirect(string|URI|function|Fins.FinsController to, array|void args, mapping|void vars)

Description

perform a redirection

in the event a relative url is passed as the to argument, this method will attempt to convert it to an absolute url using the following algorithm:

- if using Caudium or Roxen as the host container, MyWorldLocation from the current virtual server will be used - if the web->url attribute has been provided in the application configuration file, this url will be used as the base. - if the request is HTTP/1.1, the current host header will be used - if FinServe is used, the protocol will be determined based on the protocol of the responding port. - if all else fails, a relative url will be passed (not complying with the HTTP specification).

Parameter to

a string, Standards.URI object or an action (event or controller) that will be redirected to

Parameter args

an optional array of arguments that will be appended to the request url