[+FEATURE] Extbase (MVC): add possibility to output FlashMessageQueue
authorBastian Waidelich <bastian@typo3.org>
Sat, 27 Nov 2010 11:31:56 +0000 (11:31 +0000)
committerBastian Waidelich <bastian@typo3.org>
Sat, 27 Nov 2010 11:31:56 +0000 (11:31 +0000)
commitd50441761775a7b2c46806b79a9d859ce5d548a3
treed16205db5eaf4afbe72a1715127b0d2081f63543
parent90fa0879f49fc9fb73cf51f573ef64f1945617d0
[+FEATURE] Extbase (MVC): add possibility to output FlashMessageQueue

Tx_Extbase_MVC_Controller_FlashMessages now internally uses the
t3lib_FlashMessageQueue that has been introduced with TYPO3 4.3.
This results in following changes:
- flashmessages are now treated globally, not in a per-extension-scope. As soon as you output the messages first, the session will be flushed
- a flashmessage is not a simple strings anymore, but consists of
message body and (optionally) title & severity.
You can specify title and severity like this:
$this->flashMessages->add('Your message', 'some title', t3lib_FlashMessage::WARNING);
- you can now output flashmessages in backend that were set from other TYPO3 classes
- a revised flashmessage ViewHelper allows you to render flashmessages in the style
of core flashmessages now (see Fluid changelog)

This resolves: #10821
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php
typo3/sysext/extbase/Classes/MVC/Controller/FlashMessages.php