symfony - Image management for styles in Symfony2 -
ok time make webpage pretty when try include images in twig templates images not show.
my images stored in route 'mybundle/resources/public/images'
and im trying use them in twig templates
<img src="{{ asset('bundles/predit/images/goddie.png') }}">
or in <style>
{ background-image:url('gradient.png'); background-repeat:repeat-x; background-attachment: fixed; }
any idea? i'm kinda new in web styling , i'm using symfony framework
php app/console assets:install web
after path files in web folder , set in asset. should "bundles/yourbundlename/images/goddie.png"
Comments
Post a Comment