Reputation: 8441
I use asset to generate my images like :
<img class="icon_link icon2" src="{{ asset('images/icons/home.png') }}"/>
But I don't know why it's doesn't work. Because when I change 'images' by 'aaa' and I copy the icons folders into 'aaa' folders, it's work.
I have the same problem with img folder.
My web folder
When I access local.dev/aaa/icons/home.png
it's work but not
local.dev/images/icons/home.png
Any Idea ? (I uninstall and install Symfony, but same problem)
Upvotes: 0
Views: 638
Reputation: 8441
In the security.yml, I have to add my folder name :
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|icons|fonts|js)/
security: false
Upvotes: 1
Reputation: 743
I had a similar problem with a /icons folder, you should try to disable alias mod of your apache or comment only the good alias
# Alias /icons/ "/usr/share/apache2/icons/"
Bye.
Upvotes: 0