php - Symfony2: cache busting and versioning assets with Assetic -


How to add assets to load worldwide for assets?

Config.yml: Engine: ['walk'] property_version: v2

This works for regular assets, but not within the stylesheet for asset_url And javascript property block What am I doing something wrong or is it some kind of bug?

Small update this assets_version_format

without working for me Does not work.

config.yml:

  Settings: Templates: Engine: ['walk'] property_version: 1.0.1 assets_version_format: '%% s? V = %% s'   

Example:

  {% JavaScript '@DashboardBundles / Resources / Public / JS / config.js'%} & lt ; Script Type = "Text / JavaScript" Src = "{{asset_url}}" & gt; & Lt; / Script & gt; {% Endjavacripts%}   

Result:

  & lt; Script type = "text / javascript" src = "/ js / config.js? V = 1.0.1" & gt; & Lt; / Script & gt; If you want to test in the Dev environment:   

config_dev.yml:

 < Code> Acetic: Usage_controller: false   

ap_dev.fp:

  $ kernel = new appelnel ('dev', false); Php app / console cache dump: clear - -env = dev --no-debug    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -