Hello master Yii’ers.
need help.
How to embed document (pdf)??
I am using Qpdfjs Extension.
in my controller
public function actionViewer(){
$this->render('viewer');
}
in my view
<div style="height:600px;">
<?php
Yii::app()->clientScript->registerCoreScript('jquery');
$this->widget('application.extensions.pdfJs.QPdfJs',array(
'url'=>'/files/example.pdf',
))
?>
</div>
my domain
http:://localhost:3000/bust/doc
my file pdf
bust\files\example.pdf