UNB Components Code Reference

UnbUi::RedirectAndExit method

Redirects the browser to another URL and terminates programme execution.

public static function UnbUi::RedirectAndExit ($url, $params = null, $hash = null);

Parameters

url

(string) URL to redirect the browser to

params  –  optional, default: null

(array(name => value)) Associative array of URL parameters to append to the URL

hash  –  optional, default: null

(string) Page anchor

Remarks

This requires output buffering to be active to clear any previously printed output. Output buffering is normally enabled in UnbEnvironment::EnableHttpCompression, called by UnbEnvironment::SetupEnvironment, called by UnbUi::Init.

Member of class: UnbUi

Implementation file: ui.class.php, line 382

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.