I found how to reference an asset file on a Twig template here: How to include CSS file in Symfony 2 and Twig?
It says I should include the bundle folder in the path like this example: {{ asset('bundles/mybundle/css/main.css') }}
This solution is not reliable for me because I have many website templates with extensive asset file references (JS, CSS, Images) that I need to convert into Twig template and its hard for me to replace all asset paths with a full path like I mentioned in the example. At least it can be easier if I can use it like this: {{ asset('css/main.css') }}
Can anyone please help me in this issue ? Thanks to everyone.