title: CakePHP view file via Media Views doesn't work
body: <p>I have CakePHP 1.3 and I have an action that is supposed to view a file, the file maybe a .pdf, .doc, .... or any document, but I get a blank page instead.</p>
  
  <p>code sample:</p>
  
  <pre><code>public function view_attachments($attachment_id){
          $attachment = $this-&gt;get_attachment($attachment_id);
          if($attachment){
              $path = pathinfo($attachment['EmailAttachment']['file']);
              $this-&gt;view = 'Media';
              $this-&gt;autoRender = false;
              $params = array(
                  'id' =&gt; $path['basename'],
                  'name' =&gt; $path['filename'],              
                  'download' =&gt; false,
                  'mimeType'=&gt; $this-&gt;Common-&gt;get_mime_content_type($path['basename']),          
                  'extension' =&gt; strtolower($path['extension']),  // must be lower case              
                  'path' =&gt; APP . $path['dirname'] . DS   // don't forget terminal 'DS'       
              );       
              $this-&gt;set($params);
          }
      }
  </code></pre>
  
  <p>Any Ideas? Please advise.</p>