> The messages themselves can be anything that can be serialized. I tend to use
> $message = array('type'=>'error', 'message'=>'blah');
Thanks for the hint!
As far as I can tell from looking at the code of \Zend\Stdlib\SplQueue that is
used for storing messages, that's true. I hadn't looked at it and only figured
from
*
https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php#L130
that a message would have to be a string.
> Though a support for content - & meta data would be useful...
The question then is whether providing a concrete class for FlashMessenger
messages would be overkill . . .
Best regards,
Andreas
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]