src/View/Helper/FlashHelper.php
public function addTransientMessage($message, $options = null) {
		$options = $this->_mergeOptions($options);
		$options['message'] = $message;

		$messages = (array)Configure::read('TransientFlash.' . $options['key']);
		if ($messages && count($messages) > $this->getConfig('limit')) {
			array_shift($messages);
		}
		$messages[] = $options;
		Configure::write('TransientFlash.' . $options['key'], $messages);
	}
public function addTransientMessage($message, $options = null) {
		$options = $this->_mergeOptions($options);
		$options['message'] = $message;

		$messages = (array)Configure::read('TransientFlash.' . $options['key']);
		if ($messages && count($messages) > $this->getConfig('limit')) {
			array_shift($messages);
		}
		$messages[] = $options;
		Configure::write('TransientFlash.' . $options['key'], $messages);
	}
public function addTransientMessage ( $ message , $ options = null ) { $ options = $ this -> _mergeOptions ( $ options ) ; $ options [ 'message' ] = $ message ; $ messages = ( array ) Configure :: read ( 'TransientFlash.' . $ options [ 'key' ] ) ; if ( $ messages && count ( $ messages ) > $ this -> getConfig ( 'limit' ) ) { array_shift ( $ messages ) ; } $ messages [ ] = $ options ; Configure :: write ( 'TransientFlash.' . $ options [ 'key' ] , $ messages ) ; }
Add a message on the fly

@param string $message
@param array|string|null $options
@return void
Add a message on the fly