src/FlashMsg/FlashMsg.php
public function setMessage($type, $message) {
		if (!$this->session->has('flashmsgs')) {
			$this->session->set('flashmsgs', array());
		}
		$temp = $this->session->get('flashmsgs');
		$temp[] = array('type' => $type, 'content' => $message);
		$this->session->set('flashmsgs', $temp);
	}
public function setMessage($type, $message) {
		if (!$this->session->has('flashmsgs')) {
			$this->session->set('flashmsgs', array());
		}
		$temp = $this->session->get('flashmsgs');
		$temp[] = array('type' => $type, 'content' => $message);
		$this->session->set('flashmsgs', $temp);
	}
public function setMessage ( $ type , $ message ) { if ( ! $ this -> session -> has ( 'flashmsgs' ) ) { $ this -> session -> set ( 'flashmsgs' , array ( ) ) ; } $ temp = $ this -> session -> get ( 'flashmsgs' ) ; $ temp [ ] = array ( 'type' => $ type , 'content' => $ message ) ; $ this -> session -> set ( 'flashmsgs' , $ temp ) ; }
Add message to session array

@param $type string with message type
@param $message string with message text

@return void
Add message to session array