[TwigBundle] added a flash tag

This commit is contained in:
Fabien Potencier 2010-08-22 15:32:15 +02:00
parent 1277568997
commit 0319838cdc

View File

@ -48,6 +48,9 @@ class Helpers extends \Twig_Extension
// {% render 'BlogBundle:Post:list' with ['path': ['limit': 2], 'alt': 'BlogBundle:Post:error'] %}
new HelperTokenParser('render', '<template> [with <arguments:array>]', 'actions', 'render'),
// {% flash 'notice' %}
new HelperTokenParser('flash', '<name>', 'session', 'flash'),
);
}