php - Symfony2 Assetic not working with multiple javascript file with the * sign -


i use symfony2 , assetic bundle. (probleme when using * sign ask assetic take files)

form have read here , there assetic allow use multiple javascript file.

this work fine when when write file right before <'/html> tag:

{% javascripts     '@mysiteblogbundle/resources/public/js/test1.js'      '@mysiteblogbundle/resources/public/js/test2.js'     '@mysiteblogbundle/resources/public/js/test3.js'  %}     <script type="text/javascript" src="{{ asset_url }}"></script> {% endjavascripts %}     

but same code, doesn't work if instead of listing file, use * (just this:)

{% javascripts     '@mysiteblogbundle/resources/public/js/*'   %}     <script type="text/javascript" src="{{ asset_url }}"></script>  {% endjavascripts %} 

with *, works depending on pages displayed. did javascipt test on class on main twig template. , thoses class displayed on pages... test should working.

anyone ever had such probleme when using * sign assetic?

thanks comment/help.

i noticed 2 problems assetic earlier.

first, in production mode have dump them (php app/console assetic:dump --env=prod) before using. okay, not problem shouldn't forget it.

second, if use * sign load javascripts order of scripts alphabetical , can break few dependencies among script files. reason don't use * sign.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -