[FLOW3-general] FLOW3 1.0 and Flash Message Container

Bernhard Fischer bernhard at fischli.org
Wed Nov 9 10:58:02 CET 2011


Hi Ivan,

someone should finally write an FAQ for that topic or mention it in the 
Upgrade.txt. Everybody, upgrading from beta2, traps into that pitfall.

Bernhard ;-)

On 11/09/2011 10:48 AM, Ivan Ruiz Gallego wrote:
> Yes, that's it!
> Thanks again, Bernhard.
>
> On 09.11.2011 10:30, Bernhard Fischer wrote:
>> 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