我想在我的 Symfony2 项目中支持基本的主题,所以我想为每个主题分离静态文件(css、js、img)。
我试图添加
assetic:
read_from: %kernel.root_dir%/../web/themes/mytheme
但这没有效果,我的 {{asset('css/style.css') }} 仍然将 realtic 引用到 %kernel.root_dir%/../web,而不是 %kernel.root_dir%/../web/themes /mytheme。
任何的想法?