It may be getting confused because you’re referencing your asset source files incorrectly. You need to use the following syntax to include an asset from a bundle:
<?php foreach ($view['assetic']->stylesheets(array(‘@MyBundle/Resources/public/css/*’)) as $url): ?> <link rel="stylesheet" type="text/css" media="screen" href=“<? php echo $view->escape($url) ?>" /> <?php endforeach; ?> Does that help? Kris On Sunday, June 5, 2011 at 10:38 AM, John Blobsmith wrote: > Someone knows this problem ? > > On 30 mai, 07:48, John Blobsmith <oliv.g...@gmail.com (http://gmail.com)> > wrote: > > Hi, > > I work in dev mod and my css folder is in /scr/Blobsmith/MyBundle/ > > Resources/public/css/. > > > > Sorry for this very late response... > > > > On May 23, 5:03 pm, Kris Wallsmith <kris.wallsm...@symfony- > > > > > > > > > > > > > > > > project.com (http://project.com)> wrote: > > > Where are your stylesheets located in your project directory — > > > web/public/css/* ??On Sunday, May 22, 2011 at 5:23 AM, John Blobsmith > > > wrote: > > > > > I try to use assetic with php template like this : > > > > > > <?php foreach ($view['assetic']->stylesheets(array('public/css/*')) > > > > as $url): ?> > > > > <link rel="stylesheet" type="text/css" media="screen" href="<? > > > > php echo $view->escape($url) ?>" /> > > > > <?php endforeach; ?> > > > > > > But it doesn't work. > > > > I have the error : > > > > Route "_assetic_0e3af84_0" does not exist. > > > > > > Do you know where is the problem ? > > > > > > -- > > > > If you want to report a vulnerability issue on symfony, please send it > > > > to security at symfony-project.com (http://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 > > > > (mailto:symfony-users@googlegroups.com) > > > > To unsubscribe from this group, send email to > > > > symfony-users+unsubscr...@googlegroups.com > > > > (mailto: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 (http://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 > (mailto:symfony-users@googlegroups.com) > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > (mailto: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