Many thanks with $view['assets']->getUrl(... I got it to work. regards Peter
On 10 Feb., 21:32, Justin Fortier <justfort...@gmail.com> wrote: > Yeah this is kind of a mess. It's been taken out because it did not > work as "intended". Originally I was > usinghttps://github.com/Adenclassifieds/AssetOptimizerBundle > as a substitute that Fabien was recommending. Apparently recently > they've abandoned the project as they say: > > "Warning This Bundle is not maintained any more : you should try the > FOS's [AsseticBundle](https://github.com/FriendsOfSymfony/ > AsseticBundle) instead, if you look for forward compatibility" > > But clicking on their link leads to a 404. So I'm not sure what's > available as a viable solution for asset management, as I don't like > Symfony2 default implementation. Described > here:http://docs.symfony-reloaded.org/guides/templating/PHP.html#using-ass... > > Hopefully they implement something a little more user-friendly by > launch. But for now $view['assets'] is the way to go. > > On Feb 10, 2:51 pm, pzwosta <peter.zwo...@gmx.de> wrote: > > > > > > > > > Hi, > > > I'm using Symfony 2 sandbox PR6. In my layout.html.php I use: > > > <?php $view['javascripts']->add(.... > > > I know this worked in one of the previous sandboxes but now I get "The > > helper "javascripts" is not defined". That's true, javascripts is not > > part of the helpers-collection. > > > Is the javascripts helper obsolete? Do I have to configure it anywhere > > in the configs? > > What else could I use? > > > regards > > Peter -- 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