[FLOW3-general] FLOW3 1.0 and Flash Message Container

Bernhard Fischer bernhard at fischli.org
Wed Nov 9 10:30:01 CET 2011


Hi Ivan,

with 1.0 you shouldn't deal with FlashMessageContainers directly any 
longer. Use addFlashMessage() instead (with different severity types if 
you like).

On 11/09/2011 10:11 AM, Ivan Ruiz Gallego wrote:
> Hi,
>
> After upgrading to 1.0 I've noticed that the FlashMessageContainer no
> longer support the method 'add'. Instead of this, it seems that
> 'addMessage' should be used. According to the API addMessage expects an
> Error Object (Message, Notice, Warning). But, in fact, I'm using the
> flash messages to tell the user other information than errors, e.g. when
> storing a new entry in the db was successfully completed. In such cases
> using the Error object is appropriate doesn't seem appropriate to me.
>
> What do you think about that?
>
> Regards,
> Ivan.


More information about the FLOW3-general mailing list