I'm trying to make a path to an image from a js file in my symfony2 project using asset like this:
var arr = $('<img src="{{ asset("assets/images/linkArrow.png")}}">').css({
position: 'absolute',
...
});
but I'm having the following error
"NetworkError: 404 Not Found - mywebsite.com/bundles/web/app_dev.php/project/1/assets
/images/linkArrow.png"
my image is under the web/assets file.