In Symfony2.1, to adapt your render block to the correct notation, you need to
- put your arguments between single quote
'
: in this case you would have'fred': 1
- Add the
with{}
statement even if it's empty:
Which gives you:
{% render url('accomm_middle_home_recent_articles', {'fred': 1}) with {}, {'standalone': true} %}
Note: It looks like the with{}
statement is absolutely needed in Symfony2.1, from this security release. However, Symfony might have changed this recently and I don't think it is needed in Symfony2.2 anymore.
{# the with argument is needed but ignored #}
And an example they provide with it:
{% render url("path_to_controller_router", { 'param': 1 }) with {}, { 'standalone': true } %}