src/CarteBlanche/App/FrontController.php
public function getFlashMessages()
    {
        $session    = CarteBlanche::getContainer()->get('session');
        $flash_msgs = array();
        foreach($session->allFlashes() as $msg) {
            if (preg_match('/^([a-z]*):(.*)/i', $msg, $matches)) {
                if (count($matches==3)) {
                    $flash_msgs[] = array(
                        'class'=> $matches[1],
                        'content'=> $matches[2]
                    );
                }
            }
        }
        return $flash_msgs;
    }
public function getFlashMessages()
    {
        $session    = CarteBlanche::getContainer()->get('session');
        $flash_msgs = array();
        foreach($session->allFlashes() as $msg) {
            if (preg_match('/^([a-z]*):(.*)/i', $msg, $matches)) {
                if (count($matches==3)) {
                    $flash_msgs[] = array(
                        'class'=> $matches[1],
                        'content'=> $matches[2]
                    );
                }
            }
        }
        return $flash_msgs;
    }
Treat the session flash messages constructing for each one an array like:
array(
'class'=> 'class name',
'content'=> 'content string'
)

@return array An array of all flash messages