Reputation: 21
I am using the Codigniter Framework, and the Zend Barcode Library to generate barcodes.
My code for generating barcodes works in localhost, but when on the server it shows a blank page.
Why might this be happening?
Upvotes: 0
Views: 602
Reputation: 1917
i have zend framework in production for many application. To solve your issue you have to clean buffer before render your generated barcode :
ob_end_clean
Example :
$barcodeOptions = array('text' => "TEXT-BARCODE");
$rendererOptions = array();
ob_end_clean();
\Zend\Barcode\Barcode::factory(
'code39', 'image', $barcodeOptions, $rendererOptions
)->render();
Upvotes: 1