When using the image_tag() method like this:
<?php echo image_tag('whatever.png') ?>
Symfony outputs an image like this:
<img src="/images/whatever.png"/>
By default it uses images as the base images folder in your web directory. Can you change this default folder name in the Symfony config? Say I wanted to use img instead of images…
The config variable is named
sf_web_images_dir_name. You can see that in the source here. It can be set viasfConfig::setor throughapp.yml.All told, it seems like the easiest way to do this is adding:
to the end of app.yml, simply because that is where config stuff is expected, but there are a variety of different ways to accomplish this.