Answer the question
In order to leave comments, you need to log in
How to set the path to public AppBundle files?
I have a standard AppBundle, it has a Resources/public folder, which contains css and js folders. How can I specify the path to these files in the template? I know that there is a php bin/console assets:install command that creates assets in the web/ directory and that the documentation says "Best Practice: Store your assets in the web/ directory.". But I would like to pull css and js from the bundle folder during development, because gulp collects them there.
Answer the question
In order to leave comments, you need to log in
{{ asset('bundles/app/my_file.js') }}
And we execute the command with the --symlink prefixbin/console assets:install --symlink
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question