[TYPO3-core] RFC #11684: Add support for flash messages in the backend

Steffen Kamper info at sk-typo3.de
Wed Aug 19 00:26:00 CEST 2009


Hi,

Francois Suter schrieb:
> Hi,
> 
>> What i mislike is that i have to instanciate it for each message. 
>> Shouldn't it be a singleton instead which collects all the messages?
> 
> Each message is different, so class t3lib_FlashMessage cannot be a 
> singleton. I think there won't ever be that many messages at any given 
> time, so it's an acceptable overhead and it's very clean that way.
> 

yes, i've seen it. I thought about one class holding more than one 
message. Now each message is saved in session, what's the reason? (a bit 
more background info about the concept would be fine)

Whats about a wrapper function doing this with one call?

vg Steffen


More information about the TYPO3-team-core mailing list