[TYPO3-dev] Re: Flash message called from DataHandler, error

Olle Haerstedt o.haerstedt at bitmotion.de
Mon Oct 13 11:03:06 CEST 2014


Quote: Gernot Schulmeister (mistakanista) wrote on Sat, 11 October 2014 10:41
----------------------------------------------------
> Hello Olle,
> 
> in Hooks or Userfunctions to modify TCA I use flashmessages like this:
> 
> $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
> $this->controllerContext       = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ControllerContext');
> $this->controllerContext->getFlashMessageQueue()->addMessage(new FlashMessage($message, $title, FlashMessage::ERROR, TRUE));
> 
> the Flashmessage Class is known because of a use definition 
> 
> use TYPO3\CMS\Core\Messaging\FlashMessage;
> 
> best regards
> 
> Gernot
----------------------------------------------------

Hi Gernot!

Thanks for your reply. The problem was actually related to removed deprecated
code in 6.3. I solved it in a hackish way for now.

Regards
Olle



More information about the TYPO3-dev mailing list