javiereguiluz/Cupon — Issue #15: Image path
Author: kikov79
Created: 2011-12-21 16:47:39+00:00
State: open

when you install the "cupon" bundle "inside" a path (ie: cupon is not installed in root path "/"), images url are wrong.

I think that it should work everywhere if you remove the slash "/" in directorio_imagenes config option.

I have installed it in http://my_server/~kikov/cupon/ and it works perfectly. It should work if you install it as root path.
---
kikov@onuba1:~/public_html/cupon/app/config$ git diff
diff --git a/app/config/config.yml b/app/config/config.yml
index c550309..c2343be 100755
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -24,7 +24,7 @@ twig:
strict_variables: %kernel.debug%
globals:
ciudad_por_defecto: %cupon.ciudad_por_defecto%
- directorio_imagenes: '/uploads/images/'
+ directorio_imagenes: 'uploads/images/'

# ConfiguraciÃ³n de Assetic
assetic:
----