your css without having to rebuild • http://localhost/app.php – Production – For this to look right, you need to install assets and dump assetic – app.php is optional
href=”{{ asset_url }}” /> {% endstylesheets %} • Pulls files from web/bundles/iostudiodefault/css/ • php app/console assets:install web --symlink • filters • yui_css • uses yui compressor to minify stylesheets • the ? will only compress the assets if it's in production environment • cssrewrite • assetic will put the stylesheets in a different location • this filter helps make sure all the url() stuff work correctly
asset('js/app.js') }}”></script> • <img src=”{{ asset('bundles/iostudiodefault/images/logo.png') }}”/> • Benefits? – No need to worry if deployment puts app in subfolder (ie /app vs /) or not.