From f050919ae5cd40480fdc48d20a82dc5c3f199285 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 1 Mar 2017 21:40:53 +0100 Subject: [PATCH] fix usage of the session flag bag API --- controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.rst b/controller.rst index 43ce87201e6..659e3e1558e 100644 --- a/controller.rst +++ b/controller.rst @@ -447,14 +447,14 @@ read any flash messages from the session: // you can read and display just one flash message type... - getFlash('notice') as $message): ?> + getFlashBag()->get('notice') as $message): ?>
// ...or you can read and display every flash message available - getFlashes() as $type => $flash_messages): ?> + getFlashBag()->all() as $type => $flash_messages): ?>