Hi all! I have a button to print order.
<a title="Icon Title" class="btn btn-mini" target="_blank" href="<?= Yii::app()->createUrl('cp/history/printInvoice', array('transactionId' => $transaction->id)); ?>"><i class="icon-print"></i> Print</a>
She currently redirected user to the page printInvoice which forms data to print, but the user would have to print it manually. How can I make that immediately after pressing the button "print" using the function
appeared published data cp/history/printInvoice not the current html page?