Components for run jasperReports
This is rewrite from yii-ireport
yii2-ireport use tcpdf to create pdf
Update your composer.json with
{
"require": {
"andjelko/yii2-ireport": "*"
}
}
use andjelko\ireport\IReport;
$path = dirname(FILE) . 'file.jrxml'; // path to jrxml
$IReport = new IReport($path);
$IReport->parameters = array('parameters'=>$parameters);
$IReport->execute('I','file_name');