Site icon Osclass Documentation & Knowledge Base

hMessages.php

osc_add_flash_message($msg, $section = ‘pubMessages’) – Adds an ephemeral message to the session. (error style)

osc_add_flash_ok_message($msg, $section = ‘pubMessages’) – Adds an ephemeral message to the session. (ok style)

osc_add_flash_error_message($msg, $section = ‘pubMessages’) – Adds an ephemeral message to the session. (error style)

osc_add_flash_info_message($msg, $section = ‘pubMessages’) – Adds an ephemeral message to the session. (info style)

osc_add_flash_warning_message($msg, $section = ‘pubMessages’) – Adds an ephemeral message to the session. (warning style)

osc_show_flash_message($section = ‘pubMessages’, $class = “FlashMessage”, $id = “FlashMessage”) – Shows all the pending flash messages in session and cleans up the array.

osc_get_flash_message($section = ‘pubMessages’)