Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Symfony2 中,您可以assets:install将资产复制到网络(或其他文件夹)。有没有办法assets:install为公共文件夹做一个,app/Resources或者你只需要把它们放在网络文件夹中?
assets:install
app/Resources
谢谢
您应该在其文件夹中创建MainBundle或CoreBundle重新组合每个常见资产。public/迟早你可能会需要这个捆绑包来存储公共服务等。
MainBundle
CoreBundle
public/
最好将它们直接放在 web 文件夹中并使用此功能链接它们
href="{{ asset('css/screen.css') }}