Skip to content

Commit 899b48a

Browse files
committed
Merge pull request #3304 from dczech/patch-1
Update controller.rst
2 parents 285b1d4 + faabb81 commit 899b48a

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

722722
.. code-block:: html+php
723723

724-
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
724+
<?php foreach ($view['session']->getFlash('notice') as $message): ?>
725725
<div class="flash-notice">
726726
<?php echo "<div class='flash-error'>$message</div>" ?>
727727
</div>

0 commit comments

Comments
 (0)