title: DooPHP: How to output an image from a controller action?
body: <p>In one of the actions I need to return an image to the user. Is there a way to achieve this with DooPHP?</p>
  
  <p>Sample action code:</p>
  
  <pre><code>public function view() {
     $path = $this-&gt;params['path']; // contains path to the image
  
     // $this-&gt;render($path); // does not work
  }
  </code></pre>
  
  <p>Thanks and happy holidays!</p>