Brimbox Logo Brimbox Version 2.3.4 Released


Method output a logout link, which causes the controller to logout and unset the current user session.

Class: bb_main, called as $main

File: bb_main.php (php)


function logout_link($class = "bold link underline", $label = "Logout")


$main->logout_link($class, $label);

Outputs: Logout link which submits the reserved bb_logout module type.

Note: this sends the bb_logout module to the controller which causes the logout or switch user algorithm to execute.

Parameter: $class (string)
Class used to format the logout link.

Parameter: $label (string)
Label of the logout link, formatted by $class.

Updated: 2016-07-17