From 5041f85878b79187444242208137ad17592f570d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 23 Mar 2012 18:01:12 +0100 Subject: [PATCH] tweaked UPGRADE file --- UPGRADE-2.1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index b859a143cb..5c084d86b8 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -307,9 +307,9 @@ UPGRADE FROM 2.0 to 2.1 Before: ``` - {% if app.session.flashbag.has('notice') %} + {% if app.session.hasFlash('notice') %}
- {{ app.session.flashbag.get('notice') }} + {{ app.session.getFlash('notice') }}
{% endif %} ``` @@ -323,7 +323,7 @@ UPGRADE FROM 2.0 to 2.1 {% endfor %} ``` - You can process all flash messges in a single loop with: + You can process all flash messages in a single loop with: ``` {% for type, flashMessages in app.session.flashbag.all() %}