title: What's wrong with Xsendfile in Yii
body: <p>I have been trying Xsendfile() method in Yii over 20 times and none of them gave me a result. Here is my code: </p>
  
  <pre><code>    $file_path = "D:/xampp/htdocs/mywebapp/protected/modules/file_upload".DS.
                    'views'.DS.'upload'.DS.testfile.".pdf"; 
      Yii::app()-&gt;request-&gt;xSendFile($file_path ,array(
         'saveName'=&gt;$result['gen_name'] .".pdf",
         'mimeType'=&gt;'application/pdf',
         'terminate'=&gt;true,
       ));
  </code></pre>
  
  <p>And despite changing the location of testfile.pdf everywhere on my hard drive, none of them works. I am nearly exhausted with this method.
  Anyone could help me from being headache? I am using windows and xampp 1.7.4.
  Thanks so much!</p>