public static function flash($message, $label = 'default')
    {
        if (!isset($_SESSION)) {
            throw new AtomikException('The session must be started before using Atomik::flash()');
        }
        
        Atomik::fireEvent('Atomik::Flash', array(&$message, &$label));
        
        if (!Atomik::has("session.__FLASH.$label")) {
            Atomik::set("session.__FLASH.$label", array());
        }
        Atomik::add("session.__FLASH.$label", $message);
    }
public static function flash($message, $label = 'default')
    {
        if (!isset($_SESSION)) {
            throw new AtomikException('The session must be started before using Atomik::flash()');
        }
        
        Atomik::fireEvent('Atomik::Flash', array(&$message, &$label));
        
        if (!Atomik::has("session.__FLASH.$label")) {
            Atomik::set("session.__FLASH.$label", array());
        }
        Atomik::add("session.__FLASH.$label", $message);
    }
public static function flash ( $ message , $ label = 'default' ) { if ( ! isset ( $ _SESSION ) ) { throw new AtomikException ( 'The session must be started before using Atomik::flash()' ) ; } Atomik :: fireEvent ( 'Atomik::Flash' , array ( & $ message , & $ label ) ) ; if ( ! Atomik :: has ( "session.__FLASH.$label" ) ) { Atomik :: set ( "session.__FLASH.$label" , array ( ) ) ; } Atomik :: add ( "session.__FLASH.$label" , $ message ) ; }
Saves a message that can be retrieve only once

@param string|array $message One message as a string or many messages as an array
@param string $label
Saves a message that can be retrieve only once