Search code examples
zend-frameworkzend-view

How show image not in public


i have this structure:

my_app
  application
    controllers
    forms
    models
    views
  data
    signature
  library
  public
  tests

I want to show in my view the images are in data/signature

How can I do since the helper $this->baseurl() points to public?


Solution

  • You may use a showImageAction(), set headers and put the image through using file_get_contents() or similar.