PabloRQ
PabloRQ

Hi!

Working on a component, I try to use this on the default partial as it is on the documentation:

 {{ dump($var) }}

But I get this error:

Twig\Error\SyntaxError: Unknown "dump" function in

On the forum I found an old post about enable twig dump with an old solution, but I'm thinking that was a lot of improvements on this time that I'm expect the use of dump() function should be fixed.

Should it work out of the box or has to be configured in any way?

Regards...

mjauvin
mjauvin

dump() should work in twig, what version of october are you using?!

Also, twig does not use "$" in fromt of variable names so that should be {{ dump(var) }}

PabloRQ
PabloRQ

October build 464.

Yes, you're right: {{ dump(var) }}. My mistake when typing...

1-3 of 3