On Tue, Dec 14, 2010 at 9:20 PM, Thomas Rabaix <[email protected]> wrote:
> The last twig changes generated a new issue, I cannot provide a variable as
> argument anymore.
>
> Before :
> {% render block.settings.action with [ block.settings.parameters,
> block.settings.attributes ] %}
>
> After :
> {% render block.settings.action with { block.settings.parameters,
> block.settings.attributes } %}
>
> I get this error : "A hash key must be a quoted string or a number".
In this case, you're using an array (i.e. numeric keys), not a hash
(i.e. string keys), so you should keep the old syntax and all is well.
All you need to change is if you had: ["foo": "bar"] it now becomes:
{"foo": "bar"}, without the ":", then it's not a hash but an array.
Cheers
--
Jordi Boggiano
@seldaek :: http://seld.be/
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en