Skip to content
Advertisement

Pass javascript variable to twig

I just want to pass a javascript variable to a twig path. Now i’m using this, but it doesn’t work.

JavaScript

Advertisement

Answer

JavaScript

Note You should really look at the FOSJsRoutingBundle.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement