File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,14 +447,14 @@ read any flash messages from the session:
447
447
<!-- app/Resources/views/base.html.php -->
448
448
449
449
// you can read and display just one flash message type...
450
- <?php foreach ($view['session']->getFlash ('notice') as $message): ?>
450
+ <?php foreach ($view['session']->getFlashBag()->get ('notice') as $message): ?>
451
451
<div class="flash-notice">
452
452
<?php echo $message ?>
453
453
</div>
454
454
<?php endforeach ?>
455
455
456
456
// ...or you can read and display every flash message available
457
- <?php foreach ($view['session']->getFlashes () as $type => $flash_messages): ?>
457
+ <?php foreach ($view['session']->getFlashBag()->all () as $type => $flash_messages): ?>
458
458
<?php foreach ($flash_messages as $flash_message): ?>
459
459
<div class="flash-<?php echo $type ?>">
460
460
<?php echo $message ?>
You can’t perform that action at this time.
0 commit comments