V
V
Vladislav2016-08-25 15:04:56
symfony
Vladislav, 2016-08-25 15:04:56

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

1 answer(s)
A
Andrey Kulikovsky, 2016-08-25
@MrBikus

{{ asset('bundles/app/my_file.js') }}
And we execute the command with the --symlink prefix
bin/console assets:install --symlink

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question