title: How to choose location to save file excel with PHPExcel
body: <p>I have a problem when using PHPExcel to create a excel file. I want to choose location to save file excel but I don't know how do it.</p>
  
  <pre><code> $model = new User();
   $labels = $model-&gt;attributeNames();
   $data = $model-&gt;findAll();
   $objPHPExcel = Yii::app()-&gt;excel;
  
  ........
  $filename = 'text.xlsx';
  $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
  $objWriter-&gt;save($filename);
  </code></pre>
  
  <p>Please help me. thank you so much.</p>