public static function renderFlashMessages($id = 'flash-messages')
    {
        $html = '';
    	foreach (self::getFlashMessages() as $label => $messages) {
    	    foreach ($messages as $message) {
    	        $html .= sprintf('<li class="%s">%s</li>', $label, $message);
    	    }
    	}
    	if (empty($html)) {
    	    return '';
    	}
    	return '<ul id="' . $id . '">' . $html . '</ul>';
    }
public static function renderFlashMessages($id = 'flash-messages')
    {
        $html = '';
    	foreach (self::getFlashMessages() as $label => $messages) {
    	    foreach ($messages as $message) {
    	        $html .= sprintf('<li class="%s">%s</li>', $label, $message);
    	    }
    	}
    	if (empty($html)) {
    	    return '';
    	}
    	return '<ul id="' . $id . '">' . $html . '</ul>';
    }
public static function renderFlashMessages ( $ id = 'flash-messages' ) { $ html = '' ; foreach ( self :: getFlashMessages ( ) as $ label => $ messages ) { foreach ( $ messages as $ message ) { $ html .= sprintf ( '<li class="%s">%s</li>' , $ label , $ message ) ; } } if ( empty ( $ html ) ) { return '' ; } return '<ul id="' . $ id . '">' . $ html . '</ul>' ; }
Renders the messages as html

@param string $id The wrapping ul's id
@return string
Renders the messages as html