1

In one of the actions I need to return an image to the user. Is there a way to achieve this with DooPHP?

Sample action code:

public function view() {
   $path = $this->params['path']; // contains path to the image

   // $this->render($path); // does not work
}

Thanks and happy holidays!

Charles
  • 50,943
  • 13
  • 104
  • 142
MK_Dev
  • 3,291
  • 5
  • 27
  • 45

1 Answers1

0

I wasn't able to find anything in the DooPHP framework and simply ended doing it the php way as described in this answer: https://stackoverflow.com/a/900228/39843

Community
  • 1
  • 1
MK_Dev
  • 3,291
  • 5
  • 27
  • 45