Hi there, I tried to use mprint extension in Yii 1. When I clicked the print icon, there wasn’t responses and error. It just icon which useless. So, anybody could help me ?
this’s my code on my view :
<?php $this->widget('application.extensions.mPrint.mPrint', array( 'title' => 'Manage Task', //the title of the document. Defaults to the HTML title 'tooltip' => 'Print', //tooltip message of the print icon. Defaults to 'print' 'text' => 'Print Results', //text which will appear beside the print icon. Defaults to NULL 'element' => '#Query2', //the element to be printed. 'exceptions' => array( //the element/s which will be ignored '.summary', '.search-form' ), 'publishCss' => true, //publish the CSS for the whole page? //'visible' => Yii::app()->user->checkAccess('print'), //should this be visible to the current user? 'alt' => 'print', //text which will appear if image can't be loaded 'debug' => true, //enable the debugger to see what you will get 'id' => 'print-div' //id of the print link )); ?>
Thank you !