Top "Assetic" questions

Assetic is an asset management framework for PHP.

Path of assets in CSS files in Symfony 2

Problem I have a CSS file with some paths in it (for images, fonts, etc.. url(..)). My path structure is …

php css symfony assetic
How to get the full url for an asset in Controller?

I need to generate some JSON content in controller and I need to get the full URL to an uploaded …

symfony assetic
Symfony2 Path to image in twig template

I store img in Acme/DemoBundle/Resources/public/img/weather_icon/blizzard.gif I want to put this img in …

symfony twig assetic
Symfony 2 - Working with assets

I need some tips on how to work with assets in Symfony 2. For example, do we have to always perform …

symfony twig assetic
Adding JS and CSS cleanly from included Twig templates

I'm looking to find out if there's a clean way to add JS and CSS from included templates. So, for …

symfony twig assetic
Static assets not refreshing with symfony2 clear cache command

I'm using Assetic with the compass filter to pass and compile .scss files. This part of the setup seems to …

caching symfony sass compass-sass assetic
Difference between assetic:dump and assets:install

In Symfony2, what is the difference between assetic:dump and assets:install? In what scenarios should each of these commands …

symfony assetic
Assetic unable to find file

I am trying to link a css file (that lives in a bundle) inside a twig template : {% stylesheets '@AcmeFooBundle/…

symfony assetic
Run CSS file through Twig when using {% stylesheets %} tag in Twig with Symfony2

I'm including CSS stylesheets in my template like so: {% stylesheets "@SomeBundle/Resources/assets/css/default.css.twig" "@SomeBundle/Resources/assets/…

css symfony twig assetic
Pass a variable to an Assetic asset URL in Symfony2

Is there a way to pass a variable to the Assetic method in templates {% stylesheets '@SomeExampleBundle/Resources/views/ SOMEVAR /…

php symfony assetic