I am trying to understand how you are using jquery or other scripts in Symfony2. I read the asset documentation however it didn't help me much.
So I have a base.html.twig file to which I add the jquery library and my script file containing a simple script.
I add it like this:
Now I have index.html.twig in which I extend base.html.twig .... Is that all I need? For me the script is not working, I need to somehow get it in index.html.twig too?
source to share