I tried to set use_controllers to false in debug mode, because on my machine it takes 5 to 15 seconds, then I manually created the assets.
The generated files are great, but when I open the page in my browser, the css or js files do not load. I looked into the developer tools and saw that symfony was trying to download files from "localhost / _controller / js / 08f6dbe_jquery-1.7.2.min_1.js". If I delete the "_controller" in the path manually, it works fine, but I have no idea why symfony is generating the wrong path.
Some codes:
#config_dev.yml assetic: use_controller: false
base.html.twig
{% javascripts '../app/Resources/public/js/libs/jquery-1.7.2.min.js' <script type="text/javascript" src="{{ asset_url }}"></script> {% endjavascripts %}
I hope you can help me and sorry for the bad english
user1979682
source share