Skip to content

Commit 9dda2bb

Browse files
committed
[symfony#1881] Fixing bad call to getting flash messages in PHP
1 parent 2f59f6e commit 9dda2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ the ``notice`` message:
663663

664664
.. code-block:: php
665665
666-
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
666+
<?php foreach ($view['session']->getFlash('notice') as $message): ?>
667667
<div class="flash-notice">
668668
<?php echo "<div class='flash-error'>$message</div>" ?>
669669
</div>

0 commit comments

Comments
 (0)