src/FlashMsg/FlashMsg.php
public function outputMsgs() {
		$messages = $this->session->get('flashmsgs');
		$output = null;

		if ($messages) {
			foreach ($messages as $key => $message) {
				$output .= '<div class="' . $message['type'] . '"><p>' . $message['content'] . '</p></div>';
			}
		}

		return $output;
	}
public function outputMsgs() {
		$messages = $this->session->get('flashmsgs');
		$output = null;

		if ($messages) {
			foreach ($messages as $key => $message) {
				$output .= '<div class="' . $message['type'] . '"><p>' . $message['content'] . '</p></div>';
			}
		}

		return $output;
	}
public function outputMsgs ( ) { $ messages = $ this -> session -> get ( 'flashmsgs' ) ; $ output = null ; if ( $ messages ) { foreach ( $ messages as $ key => $ message ) { $ output .= '<div class="' . $ message [ 'type' ] . '"><p>' . $ message [ 'content' ] . '</p></div>' ; } } return $ output ; }
Build HTML of messages in session array

@return $output HTML string with messages
Build HTML of messages in session array