Thanks to reply. I do it : {% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css' filter='cssrewrite' %} <link rel="stylesheet" href="{{ asset_url }}" type="text/css" media="all" /> {% endstylesheets %}
but it not works. The url genrate is /Resources/Public/images/ok.gif but my image is in @BundleCreator/Resources/Public/images/ok.gif. You know where is the problem ? On 11 juin, 19:32, Kris Wallsmith <kris.wallsm...@symfony-project.com> wrote: > You need to add the cssrewrite filter to your tag: > > > > > {% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css' > filter='cssrewrite' > > %} > > On Jun 11, 2011, at 9:57 AM, John Blobsmith <oliv.g...@gmail.com> wrote: > > > > > > > > > Hi, > > I use assetic with twig to insert a css file like this : > > {% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css' > > %} > > <link rel="stylesheet" href="{{ asset_url }}" type="text/css" > > media="all" /> > > {% endstylesheets %} > > > It works well but I want insert an image in my css file like this : > > > .image{ > > background:url('../images/ok.gif') no-repeat; > > width:16px; > > height:16px; > > border:1px solid red; > > } > > > I think the path of "image" is not good but which path should I put in > > my css file ? > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en