I got exactly the same error message using Twig in dev mode. An exception has been thrown during the rendering of a template ("Route "_assetic_2e43584_0" does not exist.") in ProjectBundle::layout.html.twig at line 15.
I am using simple command: {% stylesheets '@ProjectBundle/Resources/public/main.css' %} <link href="{{ asset_url }}" type="text/css" rel="stylesheet" / > {% endstylesheets %} There are several questions regarding this here and there over the internet - all left without help. There is no documentation but as far as I know, this should work. On 12 Cze, 08:41, John Blobsmith <oliv.g...@gmail.com> wrote: > There is an issue in the google user group but I open an issue here > because it seems to be a bug. > > Assetic in php template doesn't work (dev mod). It work well with > twig. > the error is : Route "_assetic_0e3af84_0" does not exist. > > code used : > <?php foreach ($view['assetic']->stylesheets(array('MyBundle/Resources/ > public/css/*')) as $url): ?> > <link rel="stylesheet" href="<?php echo $view->escape($url) ?>" > type="text/css" media="all" /> > <?php endforeach; ?> > > user issue > :http://groups.google.com/group/symfony-users/browse_thread/thread/518... -- 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 developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en