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.
assets:installSymfony2では、アセットをWeb(または別のフォルダー)にコピーすることができます。assets:installパブリックフォルダに対してを行う方法はありapp/Resourcesますか、それともWebフォルダ内に配置する必要がありますか?
assets:install
app/Resources
ありがとう
フォルダー内のすべての共通アセットを作成MainBundleまたは再グループ化する必要があります。遅かれ早かれ、一般的なサービスなどを保存するために、とにかくこのバンドルが必要になるでしょう。CoreBundlepublic/
MainBundle
CoreBundle
public/
それらを直接Webフォルダーに配置し、この機能を使用してそれらをリンクすることをお勧めします
href="{{ asset('css/screen.css') }}