File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ read any flash messages from the session:
671671
672672 .. code-block :: html+twig
673673
674- {% for flash_message in app.session.flashbag .get('notice') %}
674+ {% for flash_message in app.session.flashBag .get('notice') %}
675675 <div class="flash-notice">
676676 {{ flash_message }}
677677 </div>
Original file line number Diff line number Diff line change @@ -15,22 +15,22 @@ that a session is *always* started:
1515
1616.. code-block :: html+twig
1717
18- {% for flashMessage in app.session.flashbag .get('notice') %}
18+ {% for flashMessage in app.session.flashBag .get('notice') %}
1919 <div class="flash-notice">
2020 {{ flashMessage }}
2121 </div>
2222 {% endfor %}
2323
2424Even if the user is not logged in and even if you haven't created any flash messages,
25- just calling the ``get() `` (or even ``has() ``) method of the ``flashbag `` will
25+ just calling the ``get() `` (or even ``has() ``) method of the ``flashBag `` will
2626start a session. This may hurt your application performance because all users will
2727receive a session cookie. To avoid this behavior, add a check before trying to
2828access the flash messages:
2929
3030.. code-block :: html+twig
3131
3232 {% if app.request.hasPreviousSession %}
33- {% for flashMessage in app.session.flashbag .get('notice') %}
33+ {% for flashMessage in app.session.flashBag .get('notice') %}
3434 <div class="flash-notice">
3535 {{ flashMessage }}
3636 </div>
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ And you can display the flash message in the template like this:
331331
332332.. code-block :: html+twig
333333
334- {% for flashMessage in app.session.flashbag .get('notice') %}
334+ {% for flashMessage in app.session.flashBag .get('notice') %}
335335 <div class="flash-notice">
336336 {{ flashMessage }}
337337 </div>
@@ -344,4 +344,4 @@ That's all there is to it and I'm not even sure you'll have spent the full
34434410 minutes. You were briefly introduced to bundles in the first part and
345345all the features you've learned about so far are part of the core FrameworkBundle.
346346But thanks to bundles, everything in Symfony can be extended or replaced.
347- That's the topic of the :doc: `next part of this tutorial <the_architecture >`.
347+ That's the topic of the :doc: `next part of this tutorial <the_architecture >`.
You can’t perform that action at this time.
0 commit comments