Your code
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
refers to web/favicon.ico
, but your actual favicon file is located in web/bundles/teamerptransport/images
. That's probably the reason why it doesn't work.
Why did you put the favicon in a bundle? Does it only apply to a part of your application? If the favicon should be displayed throughout the whole application, I'd suggest to place it directly inside the web
folder (replacing the default one that comes with Symfony's Standard Edition).
This has the added benefit that some browsers will look for a favicon at http://www.yoursite.com/favicon.ico
, so putting the file there will make sure those browsers will find it.
If you have any problems with no or old favicons being displayed in a browser, even though you're sure the URL is correct, make sure to clear your browser cache.
By the way, be sure to visit this favicon generator website (and read their FAQ) for some interesting tips on favicon files and browser support.