Feature #2819

View Helper "Flash Message"

Added by Robert Lemke over 10 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Must have
Category:
MVC
Start date:
2009-03-10
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

Provide a view helper which allows for handling "flash messages", i.e. a short message / chunk of HTML which transports information from one action to another.

Example: the createAction() successfully creates a Thing and submits the message "Successfully created Thing." to the view helper. Then a redirect to the indexAction() is carried out. The index view contains an area which displays a flash message, if any. In this case there's one: "Sucessfully created Thing.".


Related issues

Duplicated by TYPO3.Fluid - Feature #3297: flash message Closed 2009-05-14

Associated revisions

Revision d4a8bf81 (diff)
Added by Karsten Dambekalns about 10 years ago

FLOW3:
  • added flash message handling to AbstractController and ActionController, resolves #2819
Blog:
  • removed preliminary flash message handling, replaced by solution for #2819

History

#1 Updated by Sebastian Kurfuerst about 10 years ago

What do you think of introducing a new method on the TemplateView:
$this->view->flash(... HTML STRING ...); ?

Greets,
Sebastian

#2 Updated by Robert Lemke about 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Robert Lemke

#3 Updated by Robert Lemke about 10 years ago

  • Assignee changed from Robert Lemke to Karsten Dambekalns
  • % Done changed from 0 to 10

#4 Updated by Karsten Dambekalns about 10 years ago

  • % Done changed from 10 to 80

Done, needs better tests before commit.

#5 Updated by Karsten Dambekalns about 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 80 to 100

Applied in changeset r2334.

Also available in: Atom PDF