[TYPO3-mvc] [Extbase] Calling errorAction() from other action

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Sep 16 11:37:40 CEST 2010


Hey,

> I check in the createAction the filesize from an uploaded file against
> max. allowed filesize from TS settings.
> If this failed I set a message
> $this->flashMessageContainer->add('Wrong filesize !');
> and call errorAction().
> This is working, the view is recalling, but the message don't appear.
>
> Can I call errorAction() from other action and throwing a message ?

how do you call it? Do you redirect or forward? I noticed that extbase 
is not persisting flashMessages when redirecting (or something like that 
- can't remember exactly, but also had such a issue once).

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list