UNB Components Code Reference

UNB::Init method

Initialises the UNB Components.

public static function UNB::Init ($configFilename = 'unb_config.inc.php');

Parameters

configFilename  –  optional, default: 'unb_config.inc.php'

(string) Specify a configuration filename if required.

Remarks

This sets up the PHP environment, opens a database connection, enables the session and enables HTTP output compression.

To start HTTP compression/output buffering before anything else, you can separately call UnbEnvironment::SetupEnvironment() any time before this method. This can be used to start output buffering, then begin writing the HTML page and after that initialising UNB.

Member of class: UNB

Implementation file: unb.class.php, line 39

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