php - Symfony2 assets:install changes reference
936
I'm trying to use:
{% stylesheets '@Bundle/Resources/public/css/style.css' filter='rename_filter' %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}">
{% endstylesheets %}
After running assets:install the reference to the css file has change to /css/40ae858_style_1.css. Is there any way to use the original reference? At least when env=dev.
I'm not using assetic:dump while developing but will be using it on the production server.
Answer
Solution:
Your nearly there please use.
Direct access {{ asset('/bundles/yourbundlename/css/thefilename.css') }}