Yii Framework Forum: Abrir Pdf Em Nova Aba - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Abrir Pdf Em Nova Aba Rate Topic: -----

#1 User is offline   bia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 17-January 13

Posted 29 March 2013 - 05:20 PM

Gente to usando a extensão mpdf, queria abrir o relátorio em uma nova aba
meu código ta assim:
$this->layout="//layouts/pdf";
					$mPDF1 = Yii::app()->ePdf->mpdf();
					$mPDF1->WriteHTML(
					$this->render('index',array(
						'sqlUsuarios2'=>$sqlUsuarios2,
						'tipo'=>$tipo,
					),true)
					);
					$mPDF1->Output('Relatorio_Atrasos_MATERIAL',EYiiPdf::OUTPUT_TO_BROWSER);
				

"Só sei que nada sei..."
0

#2 User is offline   Gustavo Andrade 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 128
  • Joined: 16-August 11
  • Location:Brazil - MG

Posted 29 March 2013 - 05:46 PM

Nunca usei essa extensão, mas tenta com <a href="seulinkaqui" target="_blank" >PDF</a>
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users