0

I have installed LiipImagineBundle to apply filters to my images, on my localhost. It works perfect. It generates images like my_project/web/media/cache/my_widen/images/products/image.jpg, that I show using this:

<img src="{{ ('/images/products/' ~ product.imageName) | imagine_filter('my_widen') }}">

The problem: in my remote shared server, the index directory is not my_project/web, as I defined in my local machine, but just my_project/. Since I can not change it to my_project/web, I can not see the images at web/media/cache... unless I use this:

What should I do to show them correctly in both machines (local and remote) using the same code?

tirenweb
  • 30,963
  • 73
  • 183
  • 303

1 Answers1

0

It sounds like you need to change the data_root in the bundle's configuration. Read the configuration chapter of the documentation for more information.

Peter
  • 808
  • 7
  • 15