[TYPO3-dev] Flash Messages for Frontend?

Sebastian Gebhard sebastiangebhard at hoch2.de
Tue Mar 2 17:02:21 CET 2010


Am 02.03.10 16:54, schrieb Martin Kutschker:
> Sebastian Gebhard schrieb:
>> Hi,
>>
>> current implementation of flash messages is for BE usage, but IMO it
>> would be cool to have a general purpose flash message system also in the
>> FE. Im not too deep in Flash Messages, but I thought of it like this:
>>
>> $GLOBALS['TSFE']->flashMessageQueue holds an instance of
>> t3lib_FlashMessageQueue and Extensions can add their messages to the Queue:
>
> Why not create a flash message container service (ie singleton)? So any code just acquires a
> reference to it and so the same lines of code can be used in BE or FE without the need to detect the
> mode.
>
> It's IMHO a real design flaw that so many utility services are attached to $TSFE or $LANG or whatever.
>
> Masi
You're absolutely right.
When I think about it, implementing this should be really easy.

But apart from the implementation details, do you think Flash Messages 
in the FE would be useful?




More information about the TYPO3-dev mailing list