YiiReport
Yii extension for export Spreadsheet and PDF from scratch or templates using PHPExcel and PHPReport Libraries.
This library needs YiiExcel extension for work.
protected/vendors directoryYiiReport, then copy yiireport directory to protected/extensions.yiireport.php config file if you need. Here you set the PDF library to use, the path for that library and the template path. ... 'import'=>array( ... 'application.vendors.phpexcel.PHPExcel', 'ext.yiireport.*', ... ),
$r = new YiiReport(array('template'=> someTemplate.xls)); $r->load(array(...)); echo $r->render(format, name);
yiireport.php config file, you must use alias path format.'excel5' for xls, 'excel2007' for xlsx, 'html' and 'pdf'.students.xls file from examples/templates to views/reportsactionExcel() method from SiteController.php example file to your own SiteController
Be the first person to leave a comment
Please login to leave your comment.