I have different Bundles: MainBundle (Home page), SecurityBundle (Login, Registration), MessageBundle (Message system), ShopBundle.
I also follow the three-stage layout scheme (:: base.html.twig, AcmeMainBundle :: layout.html.twig, AcmeMainBundle: default: index.html.twig).
But I have problems with sharing js libraries through the application (e.g. jquery) and the definition of base.css (which sets some base classes, backgrounds, fonts, etc.)
So what is the best approach to using common css and js withouth that should lose support on the team?
One idea would be to create a CommonBundle that contains all the global js and css and some layout files, but I don't think this is the best way to handle this ...
source share