Yii Framework Forum: mPrint Extension Doesn't Work - Yii Framework Forum

Jump to content

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

mPrint Extension Doesn't Work

#1 User is offline   Rahmad Subekti 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 03-October 16

Posted 04 December 2016 - 10:12 PM

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 !
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