How to use PHP inside JS files (with Symfony)?
-
06-09-2019 - |
Question
I found this: http://www.symfony-zone.com/wordpress/2008/12/13/use-routing-to-server-localized-and-dynamic-javascript/
But I saw that it has already been built into Symfony with the use_dynamic_javascript() AssetHelper.
I can't find any documentation for using this helper though. Any examples, links, or anything to help? Thanks.
Solution
I ended up using this method.
OTHER TIPS
Maybe this can help: howto use use_dynamic_javascript helper
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow