title: How to render a popup in yii controller action?
body: <p>How to render a popup in YII controller action?</p>
  
  <p>i want to open new window for some actions...please help me with this...
  (i want this when i call a action not when i click a link)</p>
  
  <p>Ex. when i go to view action in invoice controller it should open in a new window...</p>
  
  <p>is there any way to render a popup...</p>
  
  <p>This is my action which generate pdf using <code>MPDF</code>... It should open in a new window.</p>
  
  <pre><code>public function actionReport() {
      $date=Yii::app()-&gt;Date-&gt;onlyNow();
      $name="ITEM Reprt(".$date.")";
      $mPDF1 = Yii::app()-&gt;ePdf-&gt;mpdf('L', 'A5');
      $mPDF1-&gt;WriteHTML($this-&gt;renderPartial('test', array(), true));
      $mPDF1-&gt;Output($name,'I');
  
  }
  </code></pre>
  
  <p>THANKS...!</p>