Skip to content

Commit f886afc

Browse files
committed
updated deprecated usage of flash bags
1 parent 74f9a1f commit f886afc

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
@@ -686,7 +686,7 @@ the ``notice`` message:
686686

687687
.. code-block:: php
688688
689-
<?php foreach ($view['session']->getFlash('notice') as $message): ?>
689+
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
690690
<div class="flash-notice">
691691
<?php echo "<div class='flash-error'>$message</div>" ?>
692692
</div>

0 commit comments

Comments
 (0)